@mlx-bun/inference 0.0.0-stage → 1.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 (467) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1475 -2
  3. package/THIRD_PARTY_NOTICES.md +3404 -0
  4. package/dist/native/libmlx_bun_ane.dylib +0 -0
  5. package/dist/native/libmlx_bun_expert_io.dylib +0 -0
  6. package/dist/native/mlx-bun-frame-extract +0 -0
  7. package/examples/fit-model.ts +25 -0
  8. package/examples/qwen3-forward.ts +42 -0
  9. package/examples/qwen3-generate.ts +28 -0
  10. package/examples/trellis-expand.ts +23 -0
  11. package/package.json +129 -4
  12. package/src/adapters/available.ts +110 -0
  13. package/src/adapters/index.ts +3 -0
  14. package/src/adapters/manager.ts +316 -0
  15. package/src/artifacts/auxiliary-files.ts +45 -0
  16. package/src/artifacts/config-dialects.ts +94 -0
  17. package/src/artifacts/config.ts +341 -0
  18. package/src/artifacts/draft-vocabulary.ts +30 -0
  19. package/src/artifacts/expert-offload-build.ts +75 -0
  20. package/src/artifacts/expert-offload.ts +89 -0
  21. package/src/artifacts/experts/index.ts +3 -0
  22. package/src/artifacts/experts/io.ts +386 -0
  23. package/src/artifacts/experts/residency.ts +1134 -0
  24. package/src/artifacts/experts/usage.ts +415 -0
  25. package/src/artifacts/fingerprint.ts +44 -0
  26. package/src/artifacts/glm52/container.ts +305 -0
  27. package/src/artifacts/glm52/expert-layout.ts +249 -0
  28. package/src/artifacts/glm52/index.ts +7 -0
  29. package/src/artifacts/glm52/kernel-layout.ts +124 -0
  30. package/src/artifacts/glm52/layout.ts +152 -0
  31. package/src/artifacts/glm52/memory.ts +500 -0
  32. package/src/artifacts/glm52/resident-weights.ts +135 -0
  33. package/src/artifacts/glm52/weights.ts +503 -0
  34. package/src/artifacts/glm52-config.ts +262 -0
  35. package/src/artifacts/identity.ts +94 -0
  36. package/src/artifacts/index.ts +15 -0
  37. package/src/artifacts/mmap.ts +90 -0
  38. package/src/artifacts/safetensors-writer.ts +249 -0
  39. package/src/artifacts/safetensors.ts +164 -0
  40. package/src/artifacts/turboquant-fold.ts +42 -0
  41. package/src/artifacts/weight-audit.ts +43 -0
  42. package/src/artifacts/weights.ts +255 -0
  43. package/src/contracts/index.ts +2 -0
  44. package/src/contracts/mlx/attention.ts +8 -0
  45. package/src/contracts/mlx/cache.ts +510 -0
  46. package/src/contracts/mlx/checkpoint.ts +10 -0
  47. package/src/contracts/mlx/draft-checkpoint.ts +14 -0
  48. package/src/contracts/mlx/draft-projection.ts +27 -0
  49. package/src/contracts/mlx/draft-target.ts +84 -0
  50. package/src/contracts/mlx/drafter.ts +176 -0
  51. package/src/contracts/mlx/forward-work.ts +23 -0
  52. package/src/contracts/mlx/glm52-weights.ts +25 -0
  53. package/src/contracts/mlx/graph.ts +309 -0
  54. package/src/contracts/mlx/head.ts +6 -0
  55. package/src/contracts/mlx/index.ts +15 -0
  56. package/src/contracts/mlx/kv-codec.ts +9 -0
  57. package/src/contracts/mlx/media.ts +113 -0
  58. package/src/contracts/mlx/positions.ts +16 -0
  59. package/src/contracts/mlx/row-table.ts +2 -0
  60. package/src/contracts/mlx/trainable.ts +103 -0
  61. package/src/contracts/mlx/whisper.ts +96 -0
  62. package/src/contracts/portable/composition.ts +106 -0
  63. package/src/contracts/portable/denoising.ts +17 -0
  64. package/src/contracts/portable/execution.ts +79 -0
  65. package/src/contracts/portable/generation.ts +103 -0
  66. package/src/contracts/portable/graph.ts +80 -0
  67. package/src/contracts/portable/index.ts +15 -0
  68. package/src/contracts/portable/memory-plan.ts +26 -0
  69. package/src/contracts/portable/object-cache.ts +8 -0
  70. package/src/contracts/portable/prefill.ts +63 -0
  71. package/src/contracts/portable/prefix-cache.ts +33 -0
  72. package/src/contracts/portable/prompt.ts +2 -0
  73. package/src/contracts/portable/resources.ts +25 -0
  74. package/src/contracts/portable/rollback.ts +7 -0
  75. package/src/contracts/portable/sampling.ts +44 -0
  76. package/src/contracts/portable/scheduling.ts +54 -0
  77. package/src/contracts/portable/token-delivery.ts +4 -0
  78. package/src/contracts/portable/tsconfig.json +14 -0
  79. package/src/embeddings/index.ts +1 -0
  80. package/src/embeddings/text.ts +85 -0
  81. package/src/execution/admission.ts +59 -0
  82. package/src/execution/batch-group.ts +1240 -0
  83. package/src/execution/batch-types.ts +225 -0
  84. package/src/execution/cancellation.ts +38 -0
  85. package/src/execution/continuation-request.ts +45 -0
  86. package/src/execution/continuation-types.ts +10 -0
  87. package/src/execution/coordinator.ts +70 -0
  88. package/src/execution/denoising-group.ts +180 -0
  89. package/src/execution/engine.ts +56 -0
  90. package/src/execution/fill-group.ts +505 -0
  91. package/src/execution/fit.ts +184 -0
  92. package/src/execution/gateway-binding.ts +178 -0
  93. package/src/execution/grammar-group.ts +224 -0
  94. package/src/execution/index.ts +18 -0
  95. package/src/execution/methods.ts +75 -0
  96. package/src/execution/mixed-iteration.ts +96 -0
  97. package/src/execution/plan.ts +65 -0
  98. package/src/execution/prefill-cohort.ts +100 -0
  99. package/src/execution/prefill-rows.ts +263 -0
  100. package/src/execution/request-policy.ts +19 -0
  101. package/src/execution/row-sampling.ts +49 -0
  102. package/src/execution/scheduler.ts +92 -0
  103. package/src/execution/session.ts +247 -0
  104. package/src/execution/speculative-group.ts +797 -0
  105. package/src/execution/tasks.ts +44 -0
  106. package/src/generation/autoregressive.ts +840 -0
  107. package/src/generation/bindings/autoregressive.ts +104 -0
  108. package/src/generation/bindings/denoising.ts +60 -0
  109. package/src/generation/bindings/prefill-policy.ts +36 -0
  110. package/src/generation/checkpoint-identity.ts +60 -0
  111. package/src/generation/denoising.ts +85 -0
  112. package/src/generation/diffusion.ts +583 -0
  113. package/src/generation/fill/echo-index.ts +188 -0
  114. package/src/generation/fill/index.ts +3 -0
  115. package/src/generation/fill/proposal.ts +69 -0
  116. package/src/generation/fill/schema-rows.ts +506 -0
  117. package/src/generation/fill/session.ts +464 -0
  118. package/src/generation/fill/tool-boundary.ts +103 -0
  119. package/src/generation/fill-append.ts +58 -0
  120. package/src/generation/generate.ts +44 -0
  121. package/src/generation/grammar-step.ts +39 -0
  122. package/src/generation/index.ts +14 -0
  123. package/src/generation/phase-dispatch.ts +115 -0
  124. package/src/generation/prefill.ts +33 -0
  125. package/src/generation/result.ts +49 -0
  126. package/src/generation/scopes.ts +157 -0
  127. package/src/generation/speculative/acceptance.ts +41 -0
  128. package/src/generation/speculative/adaptive-draft-gate.ts +166 -0
  129. package/src/generation/speculative/bindings/assistant-rows.ts +102 -0
  130. package/src/generation/speculative/bindings/autoregressive-rows.ts +124 -0
  131. package/src/generation/speculative/bindings/binding.ts +106 -0
  132. package/src/generation/speculative/bindings/deepspec-rows.ts +33 -0
  133. package/src/generation/speculative/bindings/draft-target.ts +10 -0
  134. package/src/generation/speculative/bindings/glm52-mtp-rows.ts +128 -0
  135. package/src/generation/speculative/bindings/projected-context-rows.ts +78 -0
  136. package/src/generation/speculative/bindings/projected-draft-rows.ts +95 -0
  137. package/src/generation/speculative/bindings/qwen-mtp-rows.ts +336 -0
  138. package/src/generation/speculative/bindings/two-model-rows.ts +63 -0
  139. package/src/generation/speculative/cache-identity.ts +16 -0
  140. package/src/generation/speculative/draft-kind.ts +149 -0
  141. package/src/generation/speculative/draft-policy.ts +41 -0
  142. package/src/generation/speculative/draft-registry.ts +118 -0
  143. package/src/generation/speculative/draft-vocab.ts +110 -0
  144. package/src/generation/speculative/index.ts +17 -0
  145. package/src/generation/speculative/output.ts +49 -0
  146. package/src/generation/speculative/round.ts +307 -0
  147. package/src/generation/speculative/source.ts +144 -0
  148. package/src/generation/speculative/sources/assistant-source.ts +64 -0
  149. package/src/generation/speculative/sources/deepspec-source.ts +70 -0
  150. package/src/generation/speculative/sources/dflash-source.ts +84 -0
  151. package/src/generation/speculative/sources/dflash2-source.ts +86 -0
  152. package/src/generation/speculative/sources/glm52-mtp-source.ts +66 -0
  153. package/src/generation/speculative/sources/ngram-source.ts +165 -0
  154. package/src/generation/speculative/sources/qwen-mtp-source.ts +154 -0
  155. package/src/generation/speculative/sources/two-model.ts +75 -0
  156. package/src/generation/types.ts +194 -0
  157. package/src/index.ts +20 -0
  158. package/src/input/audio/audiotoolbox.ts +112 -0
  159. package/src/input/audio/decode.ts +133 -0
  160. package/src/input/audio/features.ts +202 -0
  161. package/src/input/audio/index.ts +6 -0
  162. package/src/input/audio/transcode.ts +67 -0
  163. package/src/input/audio/whisper-mel.ts +185 -0
  164. package/src/input/audio/whisper-tokenizer.ts +238 -0
  165. package/src/input/chat-template.ts +389 -0
  166. package/src/input/index.ts +6 -0
  167. package/src/input/media-fetch.ts +439 -0
  168. package/src/input/packed-mixed.ts +43 -0
  169. package/src/input/special-tokens.ts +75 -0
  170. package/src/input/token-groups.ts +49 -0
  171. package/src/input/tokenizer.ts +336 -0
  172. package/src/input/tool-call.ts +689 -0
  173. package/src/input/vision/index.ts +3 -0
  174. package/src/input/vision/preprocess.ts +247 -0
  175. package/src/input/vision/prompt.ts +398 -0
  176. package/src/input/vision/qwen3vl-preprocess.ts +409 -0
  177. package/src/input/vision/qwen3vl-prompt.ts +237 -0
  178. package/src/input/vision/video-frames.ts +100 -0
  179. package/src/kernels/ane/fill.ts +101 -0
  180. package/src/kernels/ane/linear.ts +416 -0
  181. package/src/kernels/attention/flash.ts +694 -0
  182. package/src/kernels/attention/kvq4-decode.ts +155 -0
  183. package/src/kernels/attention/masks.ts +40 -0
  184. package/src/kernels/attention/multi-query.ts +193 -0
  185. package/src/kernels/attention/paged.ts +130 -0
  186. package/src/kernels/delta/gated.ts +306 -0
  187. package/src/kernels/delta/index.ts +3 -0
  188. package/src/kernels/delta/silu-rms-heads.ts +69 -0
  189. package/src/kernels/delta/state.ts +74 -0
  190. package/src/kernels/gated-rms-norm.ts +64 -0
  191. package/src/kernels/glm52/layout.ts +37 -0
  192. package/src/kernels/glm52/streamed-experts.ts +360 -0
  193. package/src/kernels/logits.ts +38 -0
  194. package/src/kernels/quantization/affine-row.ts +154 -0
  195. package/src/kernels/quantization/affine-rows.ts +36 -0
  196. package/src/kernels/quantization/affine-split-mma.ts +144 -0
  197. package/src/kernels/quantization/affine3-mma.ts +117 -0
  198. package/src/kernels/quantization/affine3-rows.ts +103 -0
  199. package/src/kernels/quantization/affine4-mma.ts +113 -0
  200. package/src/kernels/quantization/affine4-rows.ts +102 -0
  201. package/src/kernels/residual-rms-norm.ts +65 -0
  202. package/src/kernels/sampling/index.ts +2 -0
  203. package/src/kernels/sampling/normalized-argmax.ts +116 -0
  204. package/src/kernels/sampling/token-bitmask.ts +52 -0
  205. package/src/kernels/softcap.ts +35 -0
  206. package/src/kernels/trellis/codebook.ts +123 -0
  207. package/src/kernels/trellis/down-codebook.ts +184 -0
  208. package/src/kernels/trellis/down-factored.ts +180 -0
  209. package/src/kernels/trellis/down-k3-interleaved-factored.ts +146 -0
  210. package/src/kernels/trellis/down-mma-wide.ts +195 -0
  211. package/src/kernels/trellis/down-mma.ts +145 -0
  212. package/src/kernels/trellis/expand.ts +42 -0
  213. package/src/kernels/trellis/gate-up-codebook-mma.ts +141 -0
  214. package/src/kernels/trellis/gate-up-codebook.ts +137 -0
  215. package/src/kernels/trellis/gate-up-factored.ts +197 -0
  216. package/src/kernels/trellis/gate-up-mma-wide.ts +147 -0
  217. package/src/kernels/trellis/gate-up-mma.ts +148 -0
  218. package/src/kernels/trellis/gate-up.ts +248 -0
  219. package/src/kernels/trellis/geometry.ts +22 -0
  220. package/src/kernels/trellis/index.ts +103 -0
  221. package/src/kernels/trellis/launch.ts +12 -0
  222. package/src/kernels/trellis/mixed-gate-up-factored.ts +119 -0
  223. package/src/kernels/trellis/mixed-gate-up.ts +146 -0
  224. package/src/kernels/trellis/qualified.ts +34 -0
  225. package/src/kernels/trellis/reduce.ts +150 -0
  226. package/src/kernels/trellis/scatter.ts +407 -0
  227. package/src/kernels/trellis/splitk-prefill.ts +152 -0
  228. package/src/kernels/trellis/tiled-prefill.ts +131 -0
  229. package/src/kernels/trellis/vector-expand.ts +58 -0
  230. package/src/kernels/trellis/wide-prefill.ts +89 -0
  231. package/src/kernels/turboquant/decode.ts +82 -0
  232. package/src/kernels/turboquant/index.ts +5 -0
  233. package/src/kernels/turboquant/inverse.ts +122 -0
  234. package/src/kernels/turboquant/ops.ts +860 -0
  235. package/src/kernels/turboquant/signs.ts +130 -0
  236. package/src/kernels/turboquant/tables.ts +124 -0
  237. package/src/layers/affine-verify-linear.ts +75 -0
  238. package/src/layers/ane-prefill-split.ts +283 -0
  239. package/src/layers/compiled-normalization.ts +41 -0
  240. package/src/layers/delta-heads.ts +23 -0
  241. package/src/layers/dense-embedding.ts +29 -0
  242. package/src/layers/dense-linear.ts +32 -0
  243. package/src/layers/dequantized-linear.ts +72 -0
  244. package/src/layers/folded-attention.ts +42 -0
  245. package/src/layers/geglu.ts +130 -0
  246. package/src/layers/helpers.ts +7 -0
  247. package/src/layers/index.ts +36 -0
  248. package/src/layers/kv4-decode-attention.ts +15 -0
  249. package/src/layers/layer-norm.ts +24 -0
  250. package/src/layers/loading.ts +92 -0
  251. package/src/layers/lora.ts +150 -0
  252. package/src/layers/normalization.ts +9 -0
  253. package/src/layers/prefix-layout.ts +33 -0
  254. package/src/layers/quantized-append-attention.ts +32 -0
  255. package/src/layers/quantized-attention.ts +353 -0
  256. package/src/layers/quantized-embedding.ts +39 -0
  257. package/src/layers/quantized-linear.ts +137 -0
  258. package/src/layers/quantized-switch-linear.ts +37 -0
  259. package/src/layers/qwen-append.ts +12 -0
  260. package/src/layers/qwen-mrope.ts +238 -0
  261. package/src/layers/rope-2d.ts +110 -0
  262. package/src/layers/rope.ts +389 -0
  263. package/src/layers/swiglu.ts +23 -0
  264. package/src/layers/trellis-codebook-down.ts +52 -0
  265. package/src/layers/trellis-codebook-gate-up.ts +42 -0
  266. package/src/layers/trellis-down.ts +117 -0
  267. package/src/layers/trellis-gate-up.ts +71 -0
  268. package/src/layers/trellis-linear.ts +211 -0
  269. package/src/layers/trellis-prompt.ts +102 -0
  270. package/src/layers/trellis-reduce-gate-up.ts +73 -0
  271. package/src/layers/trellis-scatter-down.ts +98 -0
  272. package/src/models/ane-install.ts +74 -0
  273. package/src/models/audio/conformer.ts +656 -0
  274. package/src/models/cache-composition.ts +44 -0
  275. package/src/models/capabilities.ts +89 -0
  276. package/src/models/chat-template.ts +10 -0
  277. package/src/models/composition.ts +107 -0
  278. package/src/models/diffusion-gemma/experts.ts +59 -0
  279. package/src/models/diffusion-gemma/family.ts +21 -0
  280. package/src/models/diffusion-gemma/model.ts +900 -0
  281. package/src/models/diffusion-gemma/vision.ts +549 -0
  282. package/src/models/drafter-loaders.ts +49 -0
  283. package/src/models/drafters.ts +39 -0
  284. package/src/models/factory.ts +351 -0
  285. package/src/models/families.ts +70 -0
  286. package/src/models/family.ts +125 -0
  287. package/src/models/gemma4/assistant-target.ts +46 -0
  288. package/src/models/gemma4/assistant.ts +327 -0
  289. package/src/models/gemma4/blocks.ts +755 -0
  290. package/src/models/gemma4/compiled-decode.ts +452 -0
  291. package/src/models/gemma4/family.ts +39 -0
  292. package/src/models/gemma4/gemma4-12b.ts +677 -0
  293. package/src/models/gemma4/gemma4-26b.ts +544 -0
  294. package/src/models/gemma4/gemma4-e4b.ts +599 -0
  295. package/src/models/gemma4/graphs.ts +147 -0
  296. package/src/models/gemma4/media.ts +88 -0
  297. package/src/models/gemma4/model.ts +860 -0
  298. package/src/models/gemma4/serving-blocks.ts +72 -0
  299. package/src/models/gemma4/trainable.ts +186 -0
  300. package/src/models/gemma4/written-blocks.ts +232 -0
  301. package/src/models/gemma4/written-forward.ts +159 -0
  302. package/src/models/gemma4/written-input.ts +29 -0
  303. package/src/models/glm52/atlas.ts +507 -0
  304. package/src/models/glm52/coupling.ts +388 -0
  305. package/src/models/glm52/dsa.ts +601 -0
  306. package/src/models/glm52/family.ts +20 -0
  307. package/src/models/glm52/mla.ts +812 -0
  308. package/src/models/glm52/model.ts +1127 -0
  309. package/src/models/glm52/moe.ts +223 -0
  310. package/src/models/glm52/mtp.ts +60 -0
  311. package/src/models/glm52/pilot.ts +537 -0
  312. package/src/models/glm52/reference.ts +445 -0
  313. package/src/models/glm52/residency.ts +557 -0
  314. package/src/models/glm52/streamed-experts.ts +447 -0
  315. package/src/models/graph.ts +59 -0
  316. package/src/models/implementation.ts +230 -0
  317. package/src/models/index.ts +15 -0
  318. package/src/models/media-input.ts +15 -0
  319. package/src/models/memory-plan.ts +39 -0
  320. package/src/models/minicpm5/family.ts +29 -0
  321. package/src/models/minicpm5/model.ts +394 -0
  322. package/src/models/minicpm5/trainable.ts +90 -0
  323. package/src/models/profile.ts +337 -0
  324. package/src/models/qwen/blocks.ts +658 -0
  325. package/src/models/qwen/checkpoint.ts +190 -0
  326. package/src/models/qwen/families.ts +57 -0
  327. package/src/models/qwen/media-input.ts +161 -0
  328. package/src/models/qwen/mtp.ts +101 -0
  329. package/src/models/qwen/qwen3-moe.ts +355 -0
  330. package/src/models/qwen/qwen3.ts +323 -0
  331. package/src/models/qwen/qwen38-27b-trellis-m1max.ts +1532 -0
  332. package/src/models/qwen/qwen38-27b-trellis-m4pro.ts +1092 -0
  333. package/src/models/qwen/qwen3_5.ts +433 -0
  334. package/src/models/qwen/written-layers.ts +285 -0
  335. package/src/models/row-table.ts +1 -0
  336. package/src/models/runtime.ts +73 -0
  337. package/src/models/speculative/deepspec-artifact.ts +10 -0
  338. package/src/models/speculative/deepspec.ts +744 -0
  339. package/src/models/speculative/dflash.ts +553 -0
  340. package/src/models/speculative/dflash2-artifact.ts +9 -0
  341. package/src/models/speculative/dflash2-operations.ts +1 -0
  342. package/src/models/speculative/dflash2.ts +576 -0
  343. package/src/models/speculative/loader.ts +29 -0
  344. package/src/models/support.ts +79 -0
  345. package/src/models/universal/archs.ts +365 -0
  346. package/src/models/universal/blocks.ts +479 -0
  347. package/src/models/universal/dense.ts +255 -0
  348. package/src/models/universal/family.ts +17 -0
  349. package/src/models/vision/qwen3vl.ts +566 -0
  350. package/src/models/vision/siglip.ts +520 -0
  351. package/src/models/vision/unified.ts +176 -0
  352. package/src/models/whisper/family.ts +19 -0
  353. package/src/models/whisper/fast.ts +734 -0
  354. package/src/models/whisper/model.ts +430 -0
  355. package/src/runtime/compiled-trace.ts +16 -0
  356. package/src/runtime/config.ts +77 -0
  357. package/src/runtime/expert-trace.ts +71 -0
  358. package/src/runtime/graph-forward.ts +65 -0
  359. package/src/runtime/integers.ts +6 -0
  360. package/src/runtime/native.ts +16 -0
  361. package/src/runtime/resources.ts +53 -0
  362. package/src/runtime/row-operations.ts +42 -0
  363. package/src/runtime/trace.ts +161 -0
  364. package/src/sampling/curve.ts +122 -0
  365. package/src/sampling/draft.ts +55 -0
  366. package/src/sampling/extras.ts +45 -0
  367. package/src/sampling/filters.ts +134 -0
  368. package/src/sampling/grammar.ts +630 -0
  369. package/src/sampling/hlg.ts +290 -0
  370. package/src/sampling/index.ts +9 -0
  371. package/src/sampling/processors.ts +142 -0
  372. package/src/sampling/sampler.ts +120 -0
  373. package/src/sampling/step.ts +343 -0
  374. package/src/sampling/types.ts +161 -0
  375. package/src/sampling/window-filters.ts +46 -0
  376. package/src/scoring/decisions.ts +96 -0
  377. package/src/scoring/full-sequence.ts +103 -0
  378. package/src/scoring/index.ts +9 -0
  379. package/src/scoring/kl.ts +29 -0
  380. package/src/scoring/perplexity.ts +165 -0
  381. package/src/scoring/response-logps.ts +65 -0
  382. package/src/state/affine-attention.ts +180 -0
  383. package/src/state/attachment.ts +68 -0
  384. package/src/state/attention-read.ts +215 -0
  385. package/src/state/batched-kv.ts +294 -0
  386. package/src/state/batched-mask.ts +445 -0
  387. package/src/state/batched-quant.ts +389 -0
  388. package/src/state/batched-quantized-kv.ts +209 -0
  389. package/src/state/batched-rotating-quant.ts +457 -0
  390. package/src/state/batched-rotating-state.ts +149 -0
  391. package/src/state/batched-rotating.ts +430 -0
  392. package/src/state/batched-row-storage.ts +179 -0
  393. package/src/state/batched-ssm.ts +54 -0
  394. package/src/state/batched-turboquant-kv.ts +144 -0
  395. package/src/state/bf16-first-kv.ts +663 -0
  396. package/src/state/cache-service.ts +592 -0
  397. package/src/state/capabilities.ts +65 -0
  398. package/src/state/checkpoint.ts +46 -0
  399. package/src/state/continuation-persistence.ts +126 -0
  400. package/src/state/decode-step-inputs.ts +31 -0
  401. package/src/state/decoded-kv-donor.ts +12 -0
  402. package/src/state/delayed-quantized-kv.ts +141 -0
  403. package/src/state/delayed-rotating-quantized-kv.ts +178 -0
  404. package/src/state/delayed-turboquant-kv.ts +123 -0
  405. package/src/state/durability.ts +214 -0
  406. package/src/state/encoder-cache.ts +26 -0
  407. package/src/state/full-kv-row-append.ts +33 -0
  408. package/src/state/full-kv-row-donor.ts +54 -0
  409. package/src/state/full-prefill-padding.ts +56 -0
  410. package/src/state/full-prefill-row.ts +112 -0
  411. package/src/state/full-transitioning-kv-rows.ts +70 -0
  412. package/src/state/glm52-cache.ts +783 -0
  413. package/src/state/grouped-heads-kv4-cache.ts +26 -0
  414. package/src/state/index.ts +38 -0
  415. package/src/state/kv-attention-view.ts +77 -0
  416. package/src/state/kv-budget.ts +14 -0
  417. package/src/state/kv-scheme.ts +315 -0
  418. package/src/state/kv-storage.ts +57 -0
  419. package/src/state/kv-tensor-rows.ts +212 -0
  420. package/src/state/kv.ts +324 -0
  421. package/src/state/kv4-head256-cache.ts +46 -0
  422. package/src/state/latent-legos.ts +895 -0
  423. package/src/state/layout.ts +277 -0
  424. package/src/state/leases.ts +26 -0
  425. package/src/state/paged/cache.ts +689 -0
  426. package/src/state/paged/codec.ts +36 -0
  427. package/src/state/paged/rows.ts +223 -0
  428. package/src/state/persistence-types.ts +173 -0
  429. package/src/state/persistence-worker.ts +83 -0
  430. package/src/state/persistence.ts +1036 -0
  431. package/src/state/persistence.worker.d.ts +3 -0
  432. package/src/state/persistence.worker.js +264 -0
  433. package/src/state/prefix-cache.ts +685 -0
  434. package/src/state/quantized-kv.ts +369 -0
  435. package/src/state/quantized-tensor.ts +26 -0
  436. package/src/state/request-policy.ts +48 -0
  437. package/src/state/retention-policy.ts +37 -0
  438. package/src/state/rollback.ts +131 -0
  439. package/src/state/rotating-kv-donor.ts +35 -0
  440. package/src/state/rotating-kv-layout.ts +341 -0
  441. package/src/state/rotating-kv.ts +529 -0
  442. package/src/state/rotating-quantized-kv.ts +616 -0
  443. package/src/state/rotating-row-transaction.ts +35 -0
  444. package/src/state/rows.ts +104 -0
  445. package/src/state/softcap-attention.ts +118 -0
  446. package/src/state/speculative/glm52-mtp-state.ts +38 -0
  447. package/src/state/speculative/qwen-mtp-state.ts +34 -0
  448. package/src/state/speculative-rotating-kv.ts +113 -0
  449. package/src/state/ssd-cache.ts +434 -0
  450. package/src/state/ssm-prefill-padding.ts +39 -0
  451. package/src/state/ssm.ts +422 -0
  452. package/src/state/target-layout.ts +7 -0
  453. package/src/state/tiered-prefix-cache.ts +45 -0
  454. package/src/state/training-cache.ts +300 -0
  455. package/src/state/transitioning-kv-rows.ts +267 -0
  456. package/src/state/turboquant-attention.ts +97 -0
  457. package/src/state/turboquant-codec.ts +90 -0
  458. package/src/state/turboquant-kv.ts +442 -0
  459. package/src/state/views.ts +26 -0
  460. package/src/transcription/index.ts +3 -0
  461. package/src/transcription/silero-vad.ts +379 -0
  462. package/src/transcription/whisper/decode.ts +773 -0
  463. package/src/transcription/whisper/format.ts +74 -0
  464. package/src/transcription/whisper/index.ts +4 -0
  465. package/src/transcription/whisper/timing.ts +274 -0
  466. package/src/transcription/whisper/transcribe.ts +394 -0
  467. package/src/transcription/whisper/types.ts +22 -0
@@ -0,0 +1,3404 @@
1
+ # Third-party notices
2
+
3
+ The Trellis prefill, fused normalization, and TurboQuant inverse kernels incorporate MLX code
4
+ under MIT. DeltaNet kernels and cache/attention implementations are ported
5
+ from mlx-lm; the owning source files identify these origins.
6
+ Source references are recorded in the owning kernel files.
7
+
8
+ MLX: https://github.com/ml-explore/mlx
9
+
10
+ MLX-LM: https://github.com/ml-explore/mlx-lm
11
+
12
+ MLX derived code also carries Copyright © 2024 Apple Inc.
13
+
14
+ MIT License
15
+
16
+ Copyright © 2023 Apple Inc.
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+
36
+ ## Colibri
37
+
38
+ GLM-5.2 execution, container layout, expert I/O, and residency code was ported
39
+ and adapted from [Colibri](https://github.com/JustVugg/colibri), using the
40
+ existing mlx-bun implementation. Colibri is licensed under Apache-2.0.
41
+
42
+ ```text
43
+ Apache License
44
+ Version 2.0, January 2004
45
+ http://www.apache.org/licenses/
46
+
47
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
48
+
49
+ 1. Definitions.
50
+
51
+ "License" shall mean the terms and conditions for use, reproduction,
52
+ and distribution as defined by Sections 1 through 9 of this document.
53
+
54
+ "Licensor" shall mean the copyright owner or entity authorized by
55
+ the copyright owner that is granting the License.
56
+
57
+ "Legal Entity" shall mean the union of the acting entity and all
58
+ other entities that control, are controlled by, or are under common
59
+ control with that entity. For the purposes of this definition,
60
+ "control" means (i) the power, direct or indirect, to cause the
61
+ direction or management of such entity, whether by contract or
62
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
63
+ outstanding shares, or (iii) beneficial ownership of such entity.
64
+
65
+ "You" (or "Your") shall mean an individual or Legal Entity
66
+ exercising permissions granted by this License.
67
+
68
+ "Source" form shall mean the preferred form for making modifications,
69
+ including but not limited to software source code, documentation
70
+ source, and configuration files.
71
+
72
+ "Object" form shall mean any form resulting from mechanical
73
+ transformation or translation of a Source form, including but
74
+ not limited to compiled object code, generated documentation,
75
+ and conversions to other media types.
76
+
77
+ "Work" shall mean the work of authorship, whether in Source or
78
+ Object form, made available under the License, as indicated by a
79
+ copyright notice that is included in or attached to the work
80
+ (an example is provided in the Appendix below).
81
+
82
+ "Derivative Works" shall mean any work, whether in Source or Object
83
+ form, that is based on (or derived from) the Work and for which the
84
+ editorial revisions, annotations, elaborations, or other modifications
85
+ represent, as a whole, an original work of authorship. For the purposes
86
+ of this License, Derivative Works shall not include works that remain
87
+ separable from, or merely link (or bind by name) to the interfaces of,
88
+ the Work and Derivative Works thereof.
89
+
90
+ "Contribution" shall mean any work of authorship, including
91
+ the original version of the Work and any modifications or additions
92
+ to that Work or Derivative Works thereof, that is intentionally
93
+ submitted to Licensor for inclusion in the Work by the copyright owner
94
+ or by an individual or Legal Entity authorized to submit on behalf of
95
+ the copyright owner. For the purposes of this definition, "submitted"
96
+ means any form of electronic, verbal, or written communication sent
97
+ to the Licensor or its representatives, including but not limited to
98
+ communication on electronic mailing lists, source code control systems,
99
+ and issue tracking systems that are managed by, or on behalf of, the
100
+ Licensor for the purpose of discussing and improving the Work, but
101
+ excluding communication that is conspicuously marked or otherwise
102
+ designated in writing by the copyright owner as "Not a Contribution."
103
+
104
+ "Contributor" shall mean Licensor and any individual or Legal Entity
105
+ on behalf of whom a Contribution has been received by Licensor and
106
+ subsequently incorporated within the Work.
107
+
108
+ 2. Grant of Copyright License. Subject to the terms and conditions of
109
+ this License, each Contributor hereby grants to You a perpetual,
110
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
111
+ copyright license to reproduce, prepare Derivative Works of,
112
+ publicly display, publicly perform, sublicense, and distribute the
113
+ Work and such Derivative Works in Source or Object form.
114
+
115
+ 3. Grant of Patent License. Subject to the terms and conditions of
116
+ this License, each Contributor hereby grants to You a perpetual,
117
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
118
+ (except as stated in this section) patent license to make, have made,
119
+ use, offer to sell, sell, import, and otherwise transfer the Work,
120
+ where such license applies only to those patent claims licensable
121
+ by such Contributor that are necessarily infringed by their
122
+ Contribution(s) alone or by combination of their Contribution(s)
123
+ with the Work to which such Contribution(s) was submitted. If You
124
+ institute patent litigation against any entity (including a
125
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
126
+ or a Contribution incorporated within the Work constitutes direct
127
+ or contributory patent infringement, then any patent licenses
128
+ granted to You under this License for that Work shall terminate
129
+ as of the date such litigation is filed.
130
+
131
+ 4. Redistribution. You may reproduce and distribute copies of the
132
+ Work or Derivative Works thereof in any medium, with or without
133
+ modifications, and in Source or Object form, provided that You
134
+ meet the following conditions:
135
+
136
+ (a) You must give any other recipients of the Work or
137
+ Derivative Works a copy of this License; and
138
+
139
+ (b) You must cause any modified files to carry prominent notices
140
+ stating that You changed the files; and
141
+
142
+ (c) You must retain, in the Source form of any Derivative Works
143
+ that You distribute, all copyright, patent, trademark, and
144
+ attribution notices from the Source form of the Work,
145
+ excluding those notices that do not pertain to any part of
146
+ the Derivative Works; and
147
+
148
+ (d) If the Work includes a "NOTICE" text file as part of its
149
+ distribution, then any Derivative Works that You distribute must
150
+ include a readable copy of the attribution notices contained
151
+ within such NOTICE file, excluding those notices that do not
152
+ pertain to any part of the Derivative Works, in at least one
153
+ of the following places: within a NOTICE text file distributed
154
+ as part of the Derivative Works; within the Source form or
155
+ documentation, if provided along with the Derivative Works; or,
156
+ within a display generated by the Derivative Works, if and
157
+ wherever such third-party notices normally appear. The contents
158
+ of the NOTICE file are for informational purposes only and
159
+ do not modify the License. You may add Your own attribution
160
+ notices within Derivative Works that You distribute, alongside
161
+ or as an addendum to the NOTICE text from the Work, provided
162
+ that such additional attribution notices cannot be construed
163
+ as modifying the License.
164
+
165
+ You may add Your own copyright statement to Your modifications and
166
+ may provide additional or different license terms and conditions
167
+ for use, reproduction, or distribution of Your modifications, or
168
+ for any such Derivative Works as a whole, provided Your use,
169
+ reproduction, and distribution of the Work otherwise complies with
170
+ the conditions stated in this License.
171
+
172
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
173
+ any Contribution intentionally submitted for inclusion in the Work
174
+ by You to the Licensor shall be under the terms and conditions of
175
+ this License, without any additional terms or conditions.
176
+ Notwithstanding the above, nothing herein shall supersede or modify
177
+ the terms of any separate license agreement you may have executed
178
+ with Licensor regarding such Contributions.
179
+
180
+ 6. Trademarks. This License does not grant permission to use the trade
181
+ names, trademarks, service marks, or product names of the Licensor,
182
+ except as required for reasonable and customary use in describing the
183
+ origin of the Work and reproducing the content of the NOTICE file.
184
+
185
+ 7. Disclaimer of Warranty. Unless required by applicable law or
186
+ agreed to in writing, Licensor provides the Work (and each
187
+ Contributor provides its Contributions) on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
189
+ implied, including, without limitation, any warranties or conditions
190
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
191
+ PARTICULAR PURPOSE. You are solely responsible for determining the
192
+ appropriateness of using or redistributing the Work and assume any
193
+ risks associated with Your exercise of permissions under this License.
194
+
195
+ 8. Limitation of Liability. In no event and under no legal theory,
196
+ whether in tort (including negligence), contract, or otherwise,
197
+ unless required by applicable law (such as deliberate and grossly
198
+ negligent acts) or agreed to in writing, shall any Contributor be
199
+ liable to You for damages, including any direct, indirect, special,
200
+ incidental, or consequential damages of any character arising as a
201
+ result of this License or out of the use or inability to use the
202
+ Work (including but not limited to damages for loss of goodwill,
203
+ work stoppage, computer failure or malfunction, or any and all
204
+ other commercial damages or losses), even if such Contributor
205
+ has been advised of the possibility of such damages.
206
+
207
+ 9. Accepting Warranty or Additional Liability. While redistributing
208
+ the Work or Derivative Works thereof, You may choose to offer,
209
+ and charge a fee for, acceptance of support, warranty, indemnity,
210
+ or other liability obligations and/or rights consistent with this
211
+ License. However, in accepting such obligations, You may act only
212
+ on Your own behalf and on Your sole responsibility, not on behalf
213
+ of any other Contributor, and only if You agree to indemnify,
214
+ defend, and hold each Contributor harmless for any liability
215
+ incurred by, or claims asserted against, such Contributor by reason
216
+ of your accepting any such warranty or additional liability.
217
+
218
+ END OF TERMS AND CONDITIONS
219
+
220
+ APPENDIX: How to apply the Apache License to your work.
221
+
222
+ To apply the Apache License to your work, attach the following
223
+ boilerplate notice, with the fields enclosed by brackets "[]"
224
+ replaced with your own identifying information. (Don't include
225
+ the brackets!) The text should be enclosed in the appropriate
226
+ comment syntax for the file format. We also recommend that a
227
+ file or class name and description of purpose be included on the
228
+ same "printed page" as the copyright notice for easier
229
+ identification within third-party archives.
230
+
231
+ Copyright [yyyy] [name of copyright owner]
232
+
233
+ Licensed under the Apache License, Version 2.0 (the "License");
234
+ you may not use this file except in compliance with the License.
235
+ You may obtain a copy of the License at
236
+
237
+ http://www.apache.org/licenses/LICENSE-2.0
238
+
239
+ Unless required by applicable law or agreed to in writing, software
240
+ distributed under the License is distributed on an "AS IS" BASIS,
241
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
242
+ See the License for the specific language governing permissions and
243
+ limitations under the License.
244
+ ```
245
+
246
+ ## MLX-VLM
247
+
248
+ Vision and image preprocessing incorporate ports of
249
+ [MLX-VLM](https://github.com/Blaizzy/mlx-vlm), including code vendored by mlx-optiq.
250
+ The upstream license is reproduced below.
251
+
252
+ ```text
253
+ MIT License
254
+
255
+ Copyright © 2025 Prince Canuma
256
+
257
+ Permission is hereby granted, free of charge, to any person obtaining a copy
258
+ of this software and associated documentation files (the "Software"), to deal
259
+ in the Software without restriction, including without limitation the rights
260
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
261
+ copies of the Software, and to permit persons to whom the Software is
262
+ furnished to do so, subject to the following conditions:
263
+
264
+ The above copyright notice and this permission notice shall be included in all
265
+ copies or substantial portions of the Software.
266
+
267
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
268
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
269
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
270
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
271
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
272
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
273
+ SOFTWARE.
274
+ ```
275
+
276
+ ## Pillow
277
+
278
+ The bicubic resize algorithm in `src/input/vision/preprocess.ts` is a port of
279
+ Pillow's ImagingResample.
280
+
281
+ ```text
282
+ The Python Imaging Library (PIL) is
283
+
284
+ Copyright © 1997-2011 by Secret Labs AB
285
+ Copyright © 1995-2011 by Fredrik Lundh and contributors
286
+
287
+ Pillow is the friendly PIL fork. It is
288
+
289
+ Copyright © 2010 by Jeffrey 'Alex' Clark and contributors
290
+
291
+ Like PIL, Pillow is licensed under the open source MIT-CMU License:
292
+
293
+ By obtaining, using, and/or copying this software and/or its associated
294
+ documentation, you agree that you have read, understood, and will comply
295
+ with the following terms and conditions:
296
+
297
+ Permission to use, copy, modify and distribute this software and its
298
+ documentation for any purpose and without fee is hereby granted,
299
+ provided that the above copyright notice appears in all copies, and that
300
+ both that copyright notice and this permission notice appear in supporting
301
+ documentation, and that the name of Secret Labs AB or the author not be
302
+ used in advertising or publicity pertaining to distribution of the software
303
+ without specific, written prior permission.
304
+
305
+ SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
306
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
307
+ IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL,
308
+ INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
309
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
310
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
311
+ PERFORMANCE OF THIS SOFTWARE.
312
+
313
+
314
+ ----
315
+
316
+ AOM
317
+
318
+ Copyright (c) 2016, Alliance for Open Media. All rights reserved.
319
+
320
+ Redistribution and use in source and binary forms, with or without
321
+ modification, are permitted provided that the following conditions
322
+ are met:
323
+
324
+ 1. Redistributions of source code must retain the above copyright
325
+ notice, this list of conditions and the following disclaimer.
326
+
327
+ 2. Redistributions in binary form must reproduce the above copyright
328
+ notice, this list of conditions and the following disclaimer in
329
+ the documentation and/or other materials provided with the
330
+ distribution.
331
+
332
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
333
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
334
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
335
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
336
+ COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
337
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
338
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
339
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
340
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
341
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
342
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
343
+ POSSIBILITY OF SUCH DAMAGE.
344
+
345
+
346
+ ----
347
+
348
+ BROTLI
349
+
350
+ Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
351
+
352
+ Permission is hereby granted, free of charge, to any person obtaining a copy
353
+ of this software and associated documentation files (the "Software"), to deal
354
+ in the Software without restriction, including without limitation the rights
355
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
356
+ copies of the Software, and to permit persons to whom the Software is
357
+ furnished to do so, subject to the following conditions:
358
+
359
+ The above copyright notice and this permission notice shall be included in
360
+ all copies or substantial portions of the Software.
361
+
362
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
363
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
364
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
365
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
366
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
367
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
368
+ THE SOFTWARE.
369
+
370
+
371
+ ----
372
+
373
+ BZIP2
374
+
375
+
376
+ --------------------------------------------------------------------------
377
+
378
+ This program, "bzip2", the associated library "libbzip2", and all
379
+ documentation, are copyright (C) 1996-2019 Julian R Seward. All
380
+ rights reserved.
381
+
382
+ Redistribution and use in source and binary forms, with or without
383
+ modification, are permitted provided that the following conditions
384
+ are met:
385
+
386
+ 1. Redistributions of source code must retain the above copyright
387
+ notice, this list of conditions and the following disclaimer.
388
+
389
+ 2. The origin of this software must not be misrepresented; you must
390
+ not claim that you wrote the original software. If you use this
391
+ software in a product, an acknowledgment in the product
392
+ documentation would be appreciated but is not required.
393
+
394
+ 3. Altered source versions must be plainly marked as such, and must
395
+ not be misrepresented as being the original software.
396
+
397
+ 4. The name of the author may not be used to endorse or promote
398
+ products derived from this software without specific prior written
399
+ permission.
400
+
401
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
402
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
403
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
404
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
405
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
406
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
407
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
408
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
409
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
410
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
411
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
412
+
413
+ Julian Seward, jseward@acm.org
414
+ bzip2/libbzip2 version 1.0.8 of 13 July 2019
415
+
416
+ --------------------------------------------------------------------------
417
+
418
+
419
+ ----
420
+
421
+ DAV1D
422
+
423
+ Copyright © 2018-2019, VideoLAN and dav1d authors
424
+ All rights reserved.
425
+
426
+ Redistribution and use in source and binary forms, with or without
427
+ modification, are permitted provided that the following conditions are met:
428
+
429
+ 1. Redistributions of source code must retain the above copyright notice, this
430
+ list of conditions and the following disclaimer.
431
+
432
+ 2. Redistributions in binary form must reproduce the above copyright notice,
433
+ this list of conditions and the following disclaimer in the documentation
434
+ and/or other materials provided with the distribution.
435
+
436
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
437
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
438
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
439
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
440
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
441
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
442
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
443
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
444
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
445
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
446
+
447
+
448
+ ----
449
+
450
+ FREETYPE2
451
+
452
+ The FreeType 2 font engine is copyrighted work and cannot be used
453
+ legally without a software license. In order to make this project
454
+ usable to a vast majority of developers, we distribute it under two
455
+ mutually exclusive open-source licenses.
456
+
457
+ This means that *you* must choose *one* of the two licenses described
458
+ below, then obey all its terms and conditions when using FreeType 2 in
459
+ any of your projects or products.
460
+
461
+ - The FreeType License, found in the file `docs/FTL.TXT`, which is
462
+ similar to the original BSD license *with* an advertising clause
463
+ that forces you to explicitly cite the FreeType project in your
464
+ product's documentation. All details are in the license file.
465
+ This license is suited to products which don't use the GNU General
466
+ Public License.
467
+
468
+ Note that this license is compatible to the GNU General Public
469
+ License version 3, but not version 2.
470
+
471
+ - The GNU General Public License version 2, found in
472
+ `docs/GPLv2.TXT` (any later version can be used also), for
473
+ programs which already use the GPL. Note that the FTL is
474
+ incompatible with GPLv2 due to its advertisement clause.
475
+
476
+ The contributed BDF and PCF drivers come with a license similar to
477
+ that of the X Window System. It is compatible to the above two
478
+ licenses (see files `src/bdf/README` and `src/pcf/README`). The same
479
+ holds for the source code files `src/base/fthash.c` and
480
+ `include/freetype/internal/fthash.h`; they were part of the BDF driver
481
+ in earlier FreeType versions.
482
+
483
+ The gzip module uses the zlib license (see `src/gzip/zlib.h`) which
484
+ too is compatible to the above two licenses.
485
+
486
+ The files `src/autofit/ft-hb.c` and `src/autofit/ft-hb.h` contain code
487
+ taken almost verbatim from the HarfBuzz file `hb-ft.cc`, which uses
488
+ the 'Old MIT' license, compatible to the above two licenses.
489
+
490
+ The MD5 checksum support (only used for debugging in development
491
+ builds) is in the public domain.
492
+
493
+ --------------------------------------------------------------------------
494
+
495
+ The FreeType Project LICENSE
496
+ ----------------------------
497
+
498
+ 2006-Jan-27
499
+
500
+ Copyright 1996-2002, 2006 by
501
+ David Turner, Robert Wilhelm, and Werner Lemberg
502
+
503
+
504
+
505
+ Introduction
506
+ ============
507
+
508
+ The FreeType Project is distributed in several archive packages;
509
+ some of them may contain, in addition to the FreeType font engine,
510
+ various tools and contributions which rely on, or relate to, the
511
+ FreeType Project.
512
+
513
+ This license applies to all files found in such packages, and
514
+ which do not fall under their own explicit license. The license
515
+ affects thus the FreeType font engine, the test programs,
516
+ documentation and makefiles, at the very least.
517
+
518
+ This license was inspired by the BSD, Artistic, and IJG
519
+ (Independent JPEG Group) licenses, which all encourage inclusion
520
+ and use of free software in commercial and freeware products
521
+ alike. As a consequence, its main points are that:
522
+
523
+ o We don't promise that this software works. However, we will be
524
+ interested in any kind of bug reports. (`as is' distribution)
525
+
526
+ o You can use this software for whatever you want, in parts or
527
+ full form, without having to pay us. (`royalty-free' usage)
528
+
529
+ o You may not pretend that you wrote this software. If you use
530
+ it, or only parts of it, in a program, you must acknowledge
531
+ somewhere in your documentation that you have used the
532
+ FreeType code. (`credits')
533
+
534
+ We specifically permit and encourage the inclusion of this
535
+ software, with or without modifications, in commercial products.
536
+ We disclaim all warranties covering The FreeType Project and
537
+ assume no liability related to The FreeType Project.
538
+
539
+
540
+ Finally, many people asked us for a preferred form for a
541
+ credit/disclaimer to use in compliance with this license. We thus
542
+ encourage you to use the following text:
543
+
544
+ """
545
+ Portions of this software are copyright © <year> The FreeType
546
+ Project (www.freetype.org). All rights reserved.
547
+ """
548
+
549
+ Please replace <year> with the value from the FreeType version you
550
+ actually use.
551
+
552
+
553
+ Legal Terms
554
+ ===========
555
+
556
+ 0. Definitions
557
+ --------------
558
+
559
+ Throughout this license, the terms `package', `FreeType Project',
560
+ and `FreeType archive' refer to the set of files originally
561
+ distributed by the authors (David Turner, Robert Wilhelm, and
562
+ Werner Lemberg) as the `FreeType Project', be they named as alpha,
563
+ beta or final release.
564
+
565
+ `You' refers to the licensee, or person using the project, where
566
+ `using' is a generic term including compiling the project's source
567
+ code as well as linking it to form a `program' or `executable'.
568
+ This program is referred to as `a program using the FreeType
569
+ engine'.
570
+
571
+ This license applies to all files distributed in the original
572
+ FreeType Project, including all source code, binaries and
573
+ documentation, unless otherwise stated in the file in its
574
+ original, unmodified form as distributed in the original archive.
575
+ If you are unsure whether or not a particular file is covered by
576
+ this license, you must contact us to verify this.
577
+
578
+ The FreeType Project is copyright (C) 1996-2000 by David Turner,
579
+ Robert Wilhelm, and Werner Lemberg. All rights reserved except as
580
+ specified below.
581
+
582
+ 1. No Warranty
583
+ --------------
584
+
585
+ THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
586
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
587
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
588
+ PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
589
+ BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
590
+ USE, OF THE FREETYPE PROJECT.
591
+
592
+ 2. Redistribution
593
+ -----------------
594
+
595
+ This license grants a worldwide, royalty-free, perpetual and
596
+ irrevocable right and license to use, execute, perform, compile,
597
+ display, copy, create derivative works of, distribute and
598
+ sublicense the FreeType Project (in both source and object code
599
+ forms) and derivative works thereof for any purpose; and to
600
+ authorize others to exercise some or all of the rights granted
601
+ herein, subject to the following conditions:
602
+
603
+ o Redistribution of source code must retain this license file
604
+ (`FTL.TXT') unaltered; any additions, deletions or changes to
605
+ the original files must be clearly indicated in accompanying
606
+ documentation. The copyright notices of the unaltered,
607
+ original files must be preserved in all copies of source
608
+ files.
609
+
610
+ o Redistribution in binary form must provide a disclaimer that
611
+ states that the software is based in part of the work of the
612
+ FreeType Team, in the distribution documentation. We also
613
+ encourage you to put an URL to the FreeType web page in your
614
+ documentation, though this isn't mandatory.
615
+
616
+ These conditions apply to any software derived from or based on
617
+ the FreeType Project, not just the unmodified files. If you use
618
+ our work, you must acknowledge us. However, no fee need be paid
619
+ to us.
620
+
621
+ 3. Advertising
622
+ --------------
623
+
624
+ Neither the FreeType authors and contributors nor you shall use
625
+ the name of the other for commercial, advertising, or promotional
626
+ purposes without specific prior written permission.
627
+
628
+ We suggest, but do not require, that you use one or more of the
629
+ following phrases to refer to this software in your documentation
630
+ or advertising materials: `FreeType Project', `FreeType Engine',
631
+ `FreeType library', or `FreeType Distribution'.
632
+
633
+ As you have not signed this license, you are not required to
634
+ accept it. However, as the FreeType Project is copyrighted
635
+ material, only this license, or another one contracted with the
636
+ authors, grants you the right to use, distribute, and modify it.
637
+ Therefore, by using, distributing, or modifying the FreeType
638
+ Project, you indicate that you understand and accept all the terms
639
+ of this license.
640
+
641
+ 4. Contacts
642
+ -----------
643
+
644
+ There are two mailing lists related to FreeType:
645
+
646
+ o freetype@nongnu.org
647
+
648
+ Discusses general use and applications of FreeType, as well as
649
+ future and wanted additions to the library and distribution.
650
+ If you are looking for support, start in this list if you
651
+ haven't found anything to help you in the documentation.
652
+
653
+ o freetype-devel@nongnu.org
654
+
655
+ Discusses bugs, as well as engine internals, design issues,
656
+ specific licenses, porting, etc.
657
+
658
+ Our home page can be found at
659
+
660
+ https://www.freetype.org
661
+
662
+
663
+ --- end of FTL.TXT ---
664
+
665
+ The following license details are part of `src/bdf/README`:
666
+
667
+ ```
668
+ License
669
+ *******
670
+
671
+ Copyright (C) 2001-2002 by Francesco Zappa Nardelli
672
+
673
+ Permission is hereby granted, free of charge, to any person obtaining
674
+ a copy of this software and associated documentation files (the
675
+ "Software"), to deal in the Software without restriction, including
676
+ without limitation the rights to use, copy, modify, merge, publish,
677
+ distribute, sublicense, and/or sell copies of the Software, and to
678
+ permit persons to whom the Software is furnished to do so, subject to
679
+ the following conditions:
680
+
681
+ The above copyright notice and this permission notice shall be
682
+ included in all copies or substantial portions of the Software.
683
+
684
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
685
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
686
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
687
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
688
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
689
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
690
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
691
+
692
+ *** Portions of the driver (that is, bdflib.c and bdf.h):
693
+
694
+ Copyright 2000 Computing Research Labs, New Mexico State University
695
+ Copyright 2001-2002, 2011 Francesco Zappa Nardelli
696
+
697
+ Permission is hereby granted, free of charge, to any person obtaining a
698
+ copy of this software and associated documentation files (the "Software"),
699
+ to deal in the Software without restriction, including without limitation
700
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
701
+ and/or sell copies of the Software, and to permit persons to whom the
702
+ Software is furnished to do so, subject to the following conditions:
703
+
704
+ The above copyright notice and this permission notice shall be included in
705
+ all copies or substantial portions of the Software.
706
+
707
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
708
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
709
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
710
+ THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY
711
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
712
+ OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
713
+ THE USE OR OTHER DEALINGS IN THE SOFTWARE.
714
+
715
+
716
+ Credits
717
+ *******
718
+
719
+ This driver is based on excellent Mark Leisher's bdf library. If you
720
+ find something good in this driver you should probably thank him, not
721
+ me.
722
+ ```
723
+
724
+ The following license details are part of `src/pcf/README`:
725
+
726
+ ```
727
+ License
728
+ *******
729
+
730
+ Copyright (C) 2000 by Francesco Zappa Nardelli
731
+
732
+ Permission is hereby granted, free of charge, to any person obtaining
733
+ a copy of this software and associated documentation files (the
734
+ "Software"), to deal in the Software without restriction, including
735
+ without limitation the rights to use, copy, modify, merge, publish,
736
+ distribute, sublicense, and/or sell copies of the Software, and to
737
+ permit persons to whom the Software is furnished to do so, subject to
738
+ the following conditions:
739
+
740
+ The above copyright notice and this permission notice shall be
741
+ included in all copies or substantial portions of the Software.
742
+
743
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
744
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
745
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
746
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
747
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
748
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
749
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
750
+
751
+
752
+ Credits
753
+ *******
754
+
755
+ Keith Packard wrote the pcf driver found in XFree86. His work is at
756
+ the same time the specification and the sample implementation of the
757
+ PCF format. Undoubtedly, this driver is inspired from his work.
758
+ ```
759
+
760
+
761
+ ----
762
+
763
+ HARFBUZZ
764
+
765
+ HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
766
+ For parts of HarfBuzz that are licensed under different licenses see individual
767
+ files names COPYING in subdirectories where applicable.
768
+
769
+ Copyright © 2010-2022 Google, Inc.
770
+ Copyright © 2015-2020 Ebrahim Byagowi
771
+ Copyright © 2019,2020 Facebook, Inc.
772
+ Copyright © 2012,2015 Mozilla Foundation
773
+ Copyright © 2011 Codethink Limited
774
+ Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies)
775
+ Copyright © 2009 Keith Stribley
776
+ Copyright © 2011 Martin Hosken and SIL International
777
+ Copyright © 2007 Chris Wilson
778
+ Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod
779
+ Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc.
780
+ Copyright © 1998-2005 David Turner and Werner Lemberg
781
+ Copyright © 2016 Igalia S.L.
782
+ Copyright © 2022 Matthias Clasen
783
+ Copyright © 2018,2021 Khaled Hosny
784
+ Copyright © 2018,2019,2020 Adobe, Inc
785
+ Copyright © 2013-2015 Alexei Podtelezhnikov
786
+
787
+ For full copyright notices consult the individual files in the package.
788
+
789
+
790
+ Permission is hereby granted, without written agreement and without
791
+ license or royalty fees, to use, copy, modify, and distribute this
792
+ software and its documentation for any purpose, provided that the
793
+ above copyright notice and the following two paragraphs appear in
794
+ all copies of this software.
795
+
796
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
797
+ DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
798
+ ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
799
+ IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
800
+ DAMAGE.
801
+
802
+ THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
803
+ BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
804
+ FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
805
+ ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
806
+ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
807
+
808
+
809
+ ----
810
+
811
+ LCMS2
812
+
813
+ Little CMS
814
+ Copyright (c) 1998-2020 Marti Maria Saguer
815
+
816
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
817
+
818
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
819
+
820
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
821
+
822
+
823
+ ----
824
+
825
+ LIBAVIF
826
+
827
+ Copyright 2019 Joe Drago. All rights reserved.
828
+
829
+ Redistribution and use in source and binary forms, with or without
830
+ modification, are permitted provided that the following conditions are met:
831
+
832
+ 1. Redistributions of source code must retain the above copyright notice, this
833
+ list of conditions and the following disclaimer.
834
+
835
+ 2. Redistributions in binary form must reproduce the above copyright notice,
836
+ this list of conditions and the following disclaimer in the documentation
837
+ and/or other materials provided with the distribution.
838
+
839
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
840
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
841
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
842
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
843
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
844
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
845
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
846
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
847
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
848
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
849
+
850
+ ------------------------------------------------------------------------------
851
+
852
+ Files: src/obu.c
853
+
854
+ Copyright © 2018-2019, VideoLAN and dav1d authors
855
+ All rights reserved.
856
+
857
+ Redistribution and use in source and binary forms, with or without
858
+ modification, are permitted provided that the following conditions are met:
859
+
860
+ 1. Redistributions of source code must retain the above copyright notice, this
861
+ list of conditions and the following disclaimer.
862
+
863
+ 2. Redistributions in binary form must reproduce the above copyright notice,
864
+ this list of conditions and the following disclaimer in the documentation
865
+ and/or other materials provided with the distribution.
866
+
867
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
868
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
869
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
870
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
871
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
872
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
873
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
874
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
875
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
876
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
877
+
878
+ ------------------------------------------------------------------------------
879
+
880
+ Files: third_party/iccjpeg/*
881
+
882
+ In plain English:
883
+
884
+ 1. We don't promise that this software works. (But if you find any bugs,
885
+ please let us know!)
886
+ 2. You can use this software for whatever you want. You don't have to pay us.
887
+ 3. You may not pretend that you wrote this software. If you use it in a
888
+ program, you must acknowledge somewhere in your documentation that
889
+ you've used the IJG code.
890
+
891
+ In legalese:
892
+
893
+ The authors make NO WARRANTY or representation, either express or implied,
894
+ with respect to this software, its quality, accuracy, merchantability, or
895
+ fitness for a particular purpose. This software is provided "AS IS", and you,
896
+ its user, assume the entire risk as to its quality and accuracy.
897
+
898
+ This software is copyright (C) 1991-2013, Thomas G. Lane, Guido Vollbeding.
899
+ All Rights Reserved except as specified below.
900
+
901
+ Permission is hereby granted to use, copy, modify, and distribute this
902
+ software (or portions thereof) for any purpose, without fee, subject to these
903
+ conditions:
904
+ (1) If any part of the source code for this software is distributed, then this
905
+ README file must be included, with this copyright and no-warranty notice
906
+ unaltered; and any additions, deletions, or changes to the original files
907
+ must be clearly indicated in accompanying documentation.
908
+ (2) If only executable code is distributed, then the accompanying
909
+ documentation must state that "this software is based in part on the work of
910
+ the Independent JPEG Group".
911
+ (3) Permission for use of this software is granted only if the user accepts
912
+ full responsibility for any undesirable consequences; the authors accept
913
+ NO LIABILITY for damages of any kind.
914
+
915
+ These conditions apply to any software derived from or based on the IJG code,
916
+ not just to the unmodified library. If you use our work, you ought to
917
+ acknowledge us.
918
+
919
+ Permission is NOT granted for the use of any IJG author's name or company name
920
+ in advertising or publicity relating to this software or products derived from
921
+ it. This software may be referred to only as "the Independent JPEG Group's
922
+ software".
923
+
924
+ We specifically permit and encourage the use of this software as the basis of
925
+ commercial products, provided that all warranty or liability claims are
926
+ assumed by the product vendor.
927
+
928
+
929
+ The Unix configuration script "configure" was produced with GNU Autoconf.
930
+ It is copyright by the Free Software Foundation but is freely distributable.
931
+ The same holds for its supporting scripts (config.guess, config.sub,
932
+ ltmain.sh). Another support script, install-sh, is copyright by X Consortium
933
+ but is also freely distributable.
934
+
935
+ The IJG distribution formerly included code to read and write GIF files.
936
+ To avoid entanglement with the Unisys LZW patent, GIF reading support has
937
+ been removed altogether, and the GIF writer has been simplified to produce
938
+ "uncompressed GIFs". This technique does not use the LZW algorithm; the
939
+ resulting GIF files are larger than usual, but are readable by all standard
940
+ GIF decoders.
941
+
942
+ We are required to state that
943
+ "The Graphics Interchange Format(c) is the Copyright property of
944
+ CompuServe Incorporated. GIF(sm) is a Service Mark property of
945
+ CompuServe Incorporated."
946
+
947
+ ------------------------------------------------------------------------------
948
+
949
+ Files: contrib/gdk-pixbuf/*
950
+
951
+ Copyright 2020 Emmanuel Gil Peyrot. All rights reserved.
952
+
953
+ Redistribution and use in source and binary forms, with or without
954
+ modification, are permitted provided that the following conditions are met:
955
+
956
+ 1. Redistributions of source code must retain the above copyright notice, this
957
+ list of conditions and the following disclaimer.
958
+
959
+ 2. Redistributions in binary form must reproduce the above copyright notice,
960
+ this list of conditions and the following disclaimer in the documentation
961
+ and/or other materials provided with the distribution.
962
+
963
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
964
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
965
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
966
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
967
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
968
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
969
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
970
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
971
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
972
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
973
+
974
+ ------------------------------------------------------------------------------
975
+
976
+ Files: android_jni/gradlew*
977
+
978
+
979
+ Apache License
980
+ Version 2.0, January 2004
981
+ http://www.apache.org/licenses/
982
+
983
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
984
+
985
+ 1. Definitions.
986
+
987
+ "License" shall mean the terms and conditions for use, reproduction,
988
+ and distribution as defined by Sections 1 through 9 of this document.
989
+
990
+ "Licensor" shall mean the copyright owner or entity authorized by
991
+ the copyright owner that is granting the License.
992
+
993
+ "Legal Entity" shall mean the union of the acting entity and all
994
+ other entities that control, are controlled by, or are under common
995
+ control with that entity. For the purposes of this definition,
996
+ "control" means (i) the power, direct or indirect, to cause the
997
+ direction or management of such entity, whether by contract or
998
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
999
+ outstanding shares, or (iii) beneficial ownership of such entity.
1000
+
1001
+ "You" (or "Your") shall mean an individual or Legal Entity
1002
+ exercising permissions granted by this License.
1003
+
1004
+ "Source" form shall mean the preferred form for making modifications,
1005
+ including but not limited to software source code, documentation
1006
+ source, and configuration files.
1007
+
1008
+ "Object" form shall mean any form resulting from mechanical
1009
+ transformation or translation of a Source form, including but
1010
+ not limited to compiled object code, generated documentation,
1011
+ and conversions to other media types.
1012
+
1013
+ "Work" shall mean the work of authorship, whether in Source or
1014
+ Object form, made available under the License, as indicated by a
1015
+ copyright notice that is included in or attached to the work
1016
+ (an example is provided in the Appendix below).
1017
+
1018
+ "Derivative Works" shall mean any work, whether in Source or Object
1019
+ form, that is based on (or derived from) the Work and for which the
1020
+ editorial revisions, annotations, elaborations, or other modifications
1021
+ represent, as a whole, an original work of authorship. For the purposes
1022
+ of this License, Derivative Works shall not include works that remain
1023
+ separable from, or merely link (or bind by name) to the interfaces of,
1024
+ the Work and Derivative Works thereof.
1025
+
1026
+ "Contribution" shall mean any work of authorship, including
1027
+ the original version of the Work and any modifications or additions
1028
+ to that Work or Derivative Works thereof, that is intentionally
1029
+ submitted to Licensor for inclusion in the Work by the copyright owner
1030
+ or by an individual or Legal Entity authorized to submit on behalf of
1031
+ the copyright owner. For the purposes of this definition, "submitted"
1032
+ means any form of electronic, verbal, or written communication sent
1033
+ to the Licensor or its representatives, including but not limited to
1034
+ communication on electronic mailing lists, source code control systems,
1035
+ and issue tracking systems that are managed by, or on behalf of, the
1036
+ Licensor for the purpose of discussing and improving the Work, but
1037
+ excluding communication that is conspicuously marked or otherwise
1038
+ designated in writing by the copyright owner as "Not a Contribution."
1039
+
1040
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1041
+ on behalf of whom a Contribution has been received by Licensor and
1042
+ subsequently incorporated within the Work.
1043
+
1044
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1045
+ this License, each Contributor hereby grants to You a perpetual,
1046
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1047
+ copyright license to reproduce, prepare Derivative Works of,
1048
+ publicly display, publicly perform, sublicense, and distribute the
1049
+ Work and such Derivative Works in Source or Object form.
1050
+
1051
+ 3. Grant of Patent License. Subject to the terms and conditions of
1052
+ this License, each Contributor hereby grants to You a perpetual,
1053
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1054
+ (except as stated in this section) patent license to make, have made,
1055
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1056
+ where such license applies only to those patent claims licensable
1057
+ by such Contributor that are necessarily infringed by their
1058
+ Contribution(s) alone or by combination of their Contribution(s)
1059
+ with the Work to which such Contribution(s) was submitted. If You
1060
+ institute patent litigation against any entity (including a
1061
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1062
+ or a Contribution incorporated within the Work constitutes direct
1063
+ or contributory patent infringement, then any patent licenses
1064
+ granted to You under this License for that Work shall terminate
1065
+ as of the date such litigation is filed.
1066
+
1067
+ 4. Redistribution. You may reproduce and distribute copies of the
1068
+ Work or Derivative Works thereof in any medium, with or without
1069
+ modifications, and in Source or Object form, provided that You
1070
+ meet the following conditions:
1071
+
1072
+ (a) You must give any other recipients of the Work or
1073
+ Derivative Works a copy of this License; and
1074
+
1075
+ (b) You must cause any modified files to carry prominent notices
1076
+ stating that You changed the files; and
1077
+
1078
+ (c) You must retain, in the Source form of any Derivative Works
1079
+ that You distribute, all copyright, patent, trademark, and
1080
+ attribution notices from the Source form of the Work,
1081
+ excluding those notices that do not pertain to any part of
1082
+ the Derivative Works; and
1083
+
1084
+ (d) If the Work includes a "NOTICE" text file as part of its
1085
+ distribution, then any Derivative Works that You distribute must
1086
+ include a readable copy of the attribution notices contained
1087
+ within such NOTICE file, excluding those notices that do not
1088
+ pertain to any part of the Derivative Works, in at least one
1089
+ of the following places: within a NOTICE text file distributed
1090
+ as part of the Derivative Works; within the Source form or
1091
+ documentation, if provided along with the Derivative Works; or,
1092
+ within a display generated by the Derivative Works, if and
1093
+ wherever such third-party notices normally appear. The contents
1094
+ of the NOTICE file are for informational purposes only and
1095
+ do not modify the License. You may add Your own attribution
1096
+ notices within Derivative Works that You distribute, alongside
1097
+ or as an addendum to the NOTICE text from the Work, provided
1098
+ that such additional attribution notices cannot be construed
1099
+ as modifying the License.
1100
+
1101
+ You may add Your own copyright statement to Your modifications and
1102
+ may provide additional or different license terms and conditions
1103
+ for use, reproduction, or distribution of Your modifications, or
1104
+ for any such Derivative Works as a whole, provided Your use,
1105
+ reproduction, and distribution of the Work otherwise complies with
1106
+ the conditions stated in this License.
1107
+
1108
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
1109
+ any Contribution intentionally submitted for inclusion in the Work
1110
+ by You to the Licensor shall be under the terms and conditions of
1111
+ this License, without any additional terms or conditions.
1112
+ Notwithstanding the above, nothing herein shall supersede or modify
1113
+ the terms of any separate license agreement you may have executed
1114
+ with Licensor regarding such Contributions.
1115
+
1116
+ 6. Trademarks. This License does not grant permission to use the trade
1117
+ names, trademarks, service marks, or product names of the Licensor,
1118
+ except as required for reasonable and customary use in describing the
1119
+ origin of the Work and reproducing the content of the NOTICE file.
1120
+
1121
+ 7. Disclaimer of Warranty. Unless required by applicable law or
1122
+ agreed to in writing, Licensor provides the Work (and each
1123
+ Contributor provides its Contributions) on an "AS IS" BASIS,
1124
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1125
+ implied, including, without limitation, any warranties or conditions
1126
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1127
+ PARTICULAR PURPOSE. You are solely responsible for determining the
1128
+ appropriateness of using or redistributing the Work and assume any
1129
+ risks associated with Your exercise of permissions under this License.
1130
+
1131
+ 8. Limitation of Liability. In no event and under no legal theory,
1132
+ whether in tort (including negligence), contract, or otherwise,
1133
+ unless required by applicable law (such as deliberate and grossly
1134
+ negligent acts) or agreed to in writing, shall any Contributor be
1135
+ liable to You for damages, including any direct, indirect, special,
1136
+ incidental, or consequential damages of any character arising as a
1137
+ result of this License or out of the use or inability to use the
1138
+ Work (including but not limited to damages for loss of goodwill,
1139
+ work stoppage, computer failure or malfunction, or any and all
1140
+ other commercial damages or losses), even if such Contributor
1141
+ has been advised of the possibility of such damages.
1142
+
1143
+ 9. Accepting Warranty or Additional Liability. While redistributing
1144
+ the Work or Derivative Works thereof, You may choose to offer,
1145
+ and charge a fee for, acceptance of support, warranty, indemnity,
1146
+ or other liability obligations and/or rights consistent with this
1147
+ License. However, in accepting such obligations, You may act only
1148
+ on Your own behalf and on Your sole responsibility, not on behalf
1149
+ of any other Contributor, and only if You agree to indemnify,
1150
+ defend, and hold each Contributor harmless for any liability
1151
+ incurred by, or claims asserted against, such Contributor by reason
1152
+ of your accepting any such warranty or additional liability.
1153
+
1154
+ END OF TERMS AND CONDITIONS
1155
+
1156
+ APPENDIX: How to apply the Apache License to your work.
1157
+
1158
+ To apply the Apache License to your work, attach the following
1159
+ boilerplate notice, with the fields enclosed by brackets "[]"
1160
+ replaced with your own identifying information. (Don't include
1161
+ the brackets!) The text should be enclosed in the appropriate
1162
+ comment syntax for the file format. We also recommend that a
1163
+ file or class name and description of purpose be included on the
1164
+ same "printed page" as the copyright notice for easier
1165
+ identification within third-party archives.
1166
+
1167
+ Copyright [yyyy] [name of copyright owner]
1168
+
1169
+ Licensed under the Apache License, Version 2.0 (the "License");
1170
+ you may not use this file except in compliance with the License.
1171
+ You may obtain a copy of the License at
1172
+
1173
+ http://www.apache.org/licenses/LICENSE-2.0
1174
+
1175
+ Unless required by applicable law or agreed to in writing, software
1176
+ distributed under the License is distributed on an "AS IS" BASIS,
1177
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1178
+ See the License for the specific language governing permissions and
1179
+ limitations under the License.
1180
+
1181
+ ------------------------------------------------------------------------------
1182
+
1183
+ Files: third_party/libyuv/*
1184
+
1185
+ Copyright 2011 The LibYuv Project Authors. All rights reserved.
1186
+
1187
+ Redistribution and use in source and binary forms, with or without
1188
+ modification, are permitted provided that the following conditions are
1189
+ met:
1190
+
1191
+ * Redistributions of source code must retain the above copyright
1192
+ notice, this list of conditions and the following disclaimer.
1193
+
1194
+ * Redistributions in binary form must reproduce the above copyright
1195
+ notice, this list of conditions and the following disclaimer in
1196
+ the documentation and/or other materials provided with the
1197
+ distribution.
1198
+
1199
+ * Neither the name of Google nor the names of its contributors may
1200
+ be used to endorse or promote products derived from this software
1201
+ without specific prior written permission.
1202
+
1203
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1204
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1205
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1206
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1207
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1208
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1209
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1210
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1211
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1212
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1213
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1214
+
1215
+
1216
+ ----
1217
+
1218
+ LIBJPEG
1219
+
1220
+ 1. We don't promise that this software works. (But if you find any bugs,
1221
+ please let us know!)
1222
+ 2. You can use this software for whatever you want. You don't have to pay us.
1223
+ 3. You may not pretend that you wrote this software. If you use it in a
1224
+ program, you must acknowledge somewhere in your documentation that
1225
+ you've used the IJG code.
1226
+
1227
+ In legalese:
1228
+
1229
+ The authors make NO WARRANTY or representation, either express or implied,
1230
+ with respect to this software, its quality, accuracy, merchantability, or
1231
+ fitness for a particular purpose. This software is provided "AS IS", and you,
1232
+ its user, assume the entire risk as to its quality and accuracy.
1233
+
1234
+ This software is copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding.
1235
+ All Rights Reserved except as specified below.
1236
+
1237
+ Permission is hereby granted to use, copy, modify, and distribute this
1238
+ software (or portions thereof) for any purpose, without fee, subject to these
1239
+ conditions:
1240
+ (1) If any part of the source code for this software is distributed, then this
1241
+ README file must be included, with this copyright and no-warranty notice
1242
+ unaltered; and any additions, deletions, or changes to the original files
1243
+ must be clearly indicated in accompanying documentation.
1244
+ (2) If only executable code is distributed, then the accompanying
1245
+ documentation must state that "this software is based in part on the work of
1246
+ the Independent JPEG Group".
1247
+ (3) Permission for use of this software is granted only if the user accepts
1248
+ full responsibility for any undesirable consequences; the authors accept
1249
+ NO LIABILITY for damages of any kind.
1250
+
1251
+ These conditions apply to any software derived from or based on the IJG code,
1252
+ not just to the unmodified library. If you use our work, you ought to
1253
+ acknowledge us.
1254
+
1255
+ Permission is NOT granted for the use of any IJG author's name or company name
1256
+ in advertising or publicity relating to this software or products derived from
1257
+ it. This software may be referred to only as "the Independent JPEG Group's
1258
+ software".
1259
+
1260
+ We specifically permit and encourage the use of this software as the basis of
1261
+ commercial products, provided that all warranty or liability claims are
1262
+ assumed by the product vendor.
1263
+
1264
+
1265
+ ----
1266
+
1267
+ LIBLZMA
1268
+
1269
+ XZ Utils Licensing
1270
+ ==================
1271
+
1272
+ Different licenses apply to different files in this package. Here
1273
+ is a rough summary of which licenses apply to which parts of this
1274
+ package (but check the individual files to be sure!):
1275
+
1276
+ - liblzma is in the public domain.
1277
+
1278
+ - xz, xzdec, and lzmadec command line tools are in the public
1279
+ domain unless GNU getopt_long had to be compiled and linked
1280
+ in from the lib directory. The getopt_long code is under
1281
+ GNU LGPLv2.1+.
1282
+
1283
+ - The scripts to grep, diff, and view compressed files have been
1284
+ adapted from gzip. These scripts and their documentation are
1285
+ under GNU GPLv2+.
1286
+
1287
+ - All the documentation in the doc directory and most of the
1288
+ XZ Utils specific documentation files in other directories
1289
+ are in the public domain.
1290
+
1291
+ - Translated messages are in the public domain.
1292
+
1293
+ - The build system contains public domain files, and files that
1294
+ are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
1295
+ in the binaries being built.
1296
+
1297
+ - Test files and test code in the tests directory, and debugging
1298
+ utilities in the debug directory are in the public domain.
1299
+
1300
+ - The extra directory may contain public domain files, and files
1301
+ that are under various free software licenses.
1302
+
1303
+ You can do whatever you want with the files that have been put into
1304
+ the public domain. If you find public domain legally problematic,
1305
+ take the previous sentence as a license grant. If you still find
1306
+ the lack of copyright legally problematic, you have too many
1307
+ lawyers.
1308
+
1309
+ As usual, this software is provided "as is", without any warranty.
1310
+
1311
+ If you copy significant amounts of public domain code from XZ Utils
1312
+ into your project, acknowledging this somewhere in your software is
1313
+ polite (especially if it is proprietary, non-free software), but
1314
+ naturally it is not legally required. Here is an example of a good
1315
+ notice to put into "about box" or into documentation:
1316
+
1317
+ This software includes code from XZ Utils <http://tukaani.org/xz/>.
1318
+
1319
+ The following license texts are included in the following files:
1320
+ - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
1321
+ - COPYING.GPLv2: GNU General Public License version 2
1322
+ - COPYING.GPLv3: GNU General Public License version 3
1323
+
1324
+ Note that the toolchain (compiler, linker etc.) may add some code
1325
+ pieces that are copyrighted. Thus, it is possible that e.g. liblzma
1326
+ binary wouldn't actually be in the public domain in its entirety
1327
+ even though it contains no copyrighted code from the XZ Utils source
1328
+ package.
1329
+
1330
+ If you have questions, don't hesitate to ask the author(s) for more
1331
+ information.
1332
+
1333
+
1334
+ ----
1335
+
1336
+ LIBPNG
1337
+
1338
+ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
1339
+ =========================================
1340
+
1341
+ PNG Reference Library License version 2
1342
+ ---------------------------------------
1343
+
1344
+ * Copyright (c) 1995-2022 The PNG Reference Library Authors.
1345
+ * Copyright (c) 2018-2022 Cosmin Truta.
1346
+ * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
1347
+ * Copyright (c) 1996-1997 Andreas Dilger.
1348
+ * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
1349
+
1350
+ The software is supplied "as is", without warranty of any kind,
1351
+ express or implied, including, without limitation, the warranties
1352
+ of merchantability, fitness for a particular purpose, title, and
1353
+ non-infringement. In no event shall the Copyright owners, or
1354
+ anyone distributing the software, be liable for any damages or
1355
+ other liability, whether in contract, tort or otherwise, arising
1356
+ from, out of, or in connection with the software, or the use or
1357
+ other dealings in the software, even if advised of the possibility
1358
+ of such damage.
1359
+
1360
+ Permission is hereby granted to use, copy, modify, and distribute
1361
+ this software, or portions hereof, for any purpose, without fee,
1362
+ subject to the following restrictions:
1363
+
1364
+ 1. The origin of this software must not be misrepresented; you
1365
+ must not claim that you wrote the original software. If you
1366
+ use this software in a product, an acknowledgment in the product
1367
+ documentation would be appreciated, but is not required.
1368
+
1369
+ 2. Altered source versions must be plainly marked as such, and must
1370
+ not be misrepresented as being the original software.
1371
+
1372
+ 3. This Copyright notice may not be removed or altered from any
1373
+ source or altered source distribution.
1374
+
1375
+
1376
+ PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35)
1377
+ -----------------------------------------------------------------------
1378
+
1379
+ libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are
1380
+ Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are
1381
+ derived from libpng-1.0.6, and are distributed according to the same
1382
+ disclaimer and license as libpng-1.0.6 with the following individuals
1383
+ added to the list of Contributing Authors:
1384
+
1385
+ Simon-Pierre Cadieux
1386
+ Eric S. Raymond
1387
+ Mans Rullgard
1388
+ Cosmin Truta
1389
+ Gilles Vollant
1390
+ James Yu
1391
+ Mandar Sahastrabuddhe
1392
+ Google Inc.
1393
+ Vadim Barkov
1394
+
1395
+ and with the following additions to the disclaimer:
1396
+
1397
+ There is no warranty against interference with your enjoyment of
1398
+ the library or against infringement. There is no warranty that our
1399
+ efforts or the library will fulfill any of your particular purposes
1400
+ or needs. This library is provided with all faults, and the entire
1401
+ risk of satisfactory quality, performance, accuracy, and effort is
1402
+ with the user.
1403
+
1404
+ Some files in the "contrib" directory and some configure-generated
1405
+ files that are distributed with libpng have other copyright owners, and
1406
+ are released under other open source licenses.
1407
+
1408
+ libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
1409
+ Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
1410
+ libpng-0.96, and are distributed according to the same disclaimer and
1411
+ license as libpng-0.96, with the following individuals added to the
1412
+ list of Contributing Authors:
1413
+
1414
+ Tom Lane
1415
+ Glenn Randers-Pehrson
1416
+ Willem van Schaik
1417
+
1418
+ libpng versions 0.89, June 1996, through 0.96, May 1997, are
1419
+ Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
1420
+ and are distributed according to the same disclaimer and license as
1421
+ libpng-0.88, with the following individuals added to the list of
1422
+ Contributing Authors:
1423
+
1424
+ John Bowler
1425
+ Kevin Bracey
1426
+ Sam Bushell
1427
+ Magnus Holmgren
1428
+ Greg Roelofs
1429
+ Tom Tanner
1430
+
1431
+ Some files in the "scripts" directory have other copyright owners,
1432
+ but are released under this license.
1433
+
1434
+ libpng versions 0.5, May 1995, through 0.88, January 1996, are
1435
+ Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
1436
+
1437
+ For the purposes of this copyright and license, "Contributing Authors"
1438
+ is defined as the following set of individuals:
1439
+
1440
+ Andreas Dilger
1441
+ Dave Martindale
1442
+ Guy Eric Schalnat
1443
+ Paul Schmidt
1444
+ Tim Wegner
1445
+
1446
+ The PNG Reference Library is supplied "AS IS". The Contributing
1447
+ Authors and Group 42, Inc. disclaim all warranties, expressed or
1448
+ implied, including, without limitation, the warranties of
1449
+ merchantability and of fitness for any purpose. The Contributing
1450
+ Authors and Group 42, Inc. assume no liability for direct, indirect,
1451
+ incidental, special, exemplary, or consequential damages, which may
1452
+ result from the use of the PNG Reference Library, even if advised of
1453
+ the possibility of such damage.
1454
+
1455
+ Permission is hereby granted to use, copy, modify, and distribute this
1456
+ source code, or portions hereof, for any purpose, without fee, subject
1457
+ to the following restrictions:
1458
+
1459
+ 1. The origin of this source code must not be misrepresented.
1460
+
1461
+ 2. Altered versions must be plainly marked as such and must not
1462
+ be misrepresented as being the original source.
1463
+
1464
+ 3. This Copyright notice may not be removed or altered from any
1465
+ source or altered source distribution.
1466
+
1467
+ The Contributing Authors and Group 42, Inc. specifically permit,
1468
+ without fee, and encourage the use of this source code as a component
1469
+ to supporting the PNG file format in commercial products. If you use
1470
+ this source code in a product, acknowledgment is not required but would
1471
+ be appreciated.
1472
+
1473
+
1474
+ ----
1475
+
1476
+ LIBTIFF
1477
+
1478
+ Copyright (c) 1988-1997 Sam Leffler
1479
+ Copyright (c) 1991-1997 Silicon Graphics, Inc.
1480
+
1481
+ Permission to use, copy, modify, distribute, and sell this software and
1482
+ its documentation for any purpose is hereby granted without fee, provided
1483
+ that (i) the above copyright notices and this permission notice appear in
1484
+ all copies of the software and related documentation, and (ii) the names of
1485
+ Sam Leffler and Silicon Graphics may not be used in any advertising or
1486
+ publicity relating to the software without the specific, prior written
1487
+ permission of Sam Leffler and Silicon Graphics.
1488
+
1489
+ THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
1490
+ EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
1491
+ WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
1492
+
1493
+ IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
1494
+ ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
1495
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1496
+ WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
1497
+ LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
1498
+ OF THIS SOFTWARE.
1499
+
1500
+
1501
+ ----
1502
+
1503
+ LIBWEBP
1504
+
1505
+ Copyright (c) 2010, Google Inc. All rights reserved.
1506
+
1507
+ Redistribution and use in source and binary forms, with or without
1508
+ modification, are permitted provided that the following conditions are
1509
+ met:
1510
+
1511
+ * Redistributions of source code must retain the above copyright
1512
+ notice, this list of conditions and the following disclaimer.
1513
+
1514
+ * Redistributions in binary form must reproduce the above copyright
1515
+ notice, this list of conditions and the following disclaimer in
1516
+ the documentation and/or other materials provided with the
1517
+ distribution.
1518
+
1519
+ * Neither the name of Google nor the names of its contributors may
1520
+ be used to endorse or promote products derived from this software
1521
+ without specific prior written permission.
1522
+
1523
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1524
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1525
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1526
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1527
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1528
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1529
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1530
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1531
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1532
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1533
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1534
+
1535
+
1536
+ ----
1537
+
1538
+ LIBYUV
1539
+
1540
+ Copyright 2011 The LibYuv Project Authors. All rights reserved.
1541
+
1542
+ Redistribution and use in source and binary forms, with or without
1543
+ modification, are permitted provided that the following conditions are
1544
+ met:
1545
+
1546
+ * Redistributions of source code must retain the above copyright
1547
+ notice, this list of conditions and the following disclaimer.
1548
+
1549
+ * Redistributions in binary form must reproduce the above copyright
1550
+ notice, this list of conditions and the following disclaimer in
1551
+ the documentation and/or other materials provided with the
1552
+ distribution.
1553
+
1554
+ * Neither the name of Google nor the names of its contributors may
1555
+ be used to endorse or promote products derived from this software
1556
+ without specific prior written permission.
1557
+
1558
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1559
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1560
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1561
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1562
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1563
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1564
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1565
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1566
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1567
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1568
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1569
+
1570
+
1571
+ ----
1572
+
1573
+ OPENJPEG
1574
+
1575
+ *
1576
+ * The copyright in this software is being made available under the 2-clauses
1577
+ * BSD License, included below. This software may be subject to other third
1578
+ * party and contributor rights, including patent rights, and no such rights
1579
+ * are granted under this license.
1580
+ *
1581
+ * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
1582
+ * Copyright (c) 2002-2014, Professor Benoit Macq
1583
+ * Copyright (c) 2003-2014, Antonin Descampe
1584
+ * Copyright (c) 2003-2009, Francois-Olivier Devaux
1585
+ * Copyright (c) 2005, Herve Drolon, FreeImage Team
1586
+ * Copyright (c) 2002-2003, Yannick Verschueren
1587
+ * Copyright (c) 2001-2003, David Janssens
1588
+ * Copyright (c) 2011-2012, Centre National d'Etudes Spatiales (CNES), France
1589
+ * Copyright (c) 2012, CS Systemes d'Information, France
1590
+ *
1591
+ * All rights reserved.
1592
+ *
1593
+ * Redistribution and use in source and binary forms, with or without
1594
+ * modification, are permitted provided that the following conditions
1595
+ * are met:
1596
+ * 1. Redistributions of source code must retain the above copyright
1597
+ * notice, this list of conditions and the following disclaimer.
1598
+ * 2. Redistributions in binary form must reproduce the above copyright
1599
+ * notice, this list of conditions and the following disclaimer in the
1600
+ * documentation and/or other materials provided with the distribution.
1601
+ *
1602
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
1603
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1604
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1605
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1606
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1607
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1608
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1609
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1610
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1611
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1612
+ * POSSIBILITY OF SUCH DAMAGE.
1613
+ */
1614
+
1615
+
1616
+ ----
1617
+
1618
+ RAQM
1619
+
1620
+ The MIT License (MIT)
1621
+
1622
+ Copyright © 2015 Information Technology Authority (ITA) <foss@ita.gov.om>
1623
+ Copyright © 2016 Khaled Hosny <khaledhosny@eglug.org>
1624
+
1625
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1626
+ of this software and associated documentation files (the "Software"), to deal
1627
+ in the Software without restriction, including without limitation the rights
1628
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1629
+ copies of the Software, and to permit persons to whom the Software is
1630
+ furnished to do so, subject to the following conditions:
1631
+
1632
+ The above copyright notice and this permission notice shall be included in all
1633
+ copies or substantial portions of the Software.
1634
+
1635
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1636
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1637
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1638
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1639
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1640
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1641
+ SOFTWARE.
1642
+
1643
+
1644
+ ----
1645
+
1646
+ XAU
1647
+
1648
+ Copyright 1988, 1993, 1994, 1998 The Open Group
1649
+
1650
+ Permission to use, copy, modify, distribute, and sell this software and its
1651
+ documentation for any purpose is hereby granted without fee, provided that
1652
+ the above copyright notice appear in all copies and that both that
1653
+ copyright notice and this permission notice appear in supporting
1654
+ documentation.
1655
+
1656
+ The above copyright notice and this permission notice shall be included in
1657
+ all copies or substantial portions of the Software.
1658
+
1659
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1660
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1661
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1662
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
1663
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1664
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1665
+
1666
+ Except as contained in this notice, the name of The Open Group shall not be
1667
+ used in advertising or otherwise to promote the sale, use or other dealings
1668
+ in this Software without prior written authorization from The Open Group.
1669
+
1670
+
1671
+ ----
1672
+
1673
+ XCB
1674
+
1675
+ Copyright (C) 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett.
1676
+ All Rights Reserved.
1677
+
1678
+ Permission is hereby granted, free of charge, to any person
1679
+ obtaining a copy of this software and associated
1680
+ documentation files (the "Software"), to deal in the
1681
+ Software without restriction, including without limitation
1682
+ the rights to use, copy, modify, merge, publish, distribute,
1683
+ sublicense, and/or sell copies of the Software, and to
1684
+ permit persons to whom the Software is furnished to do so,
1685
+ subject to the following conditions:
1686
+
1687
+ The above copyright notice and this permission notice shall
1688
+ be included in all copies or substantial portions of the
1689
+ Software.
1690
+
1691
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
1692
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
1693
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
1694
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
1695
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1696
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1697
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1698
+ OTHER DEALINGS IN THE SOFTWARE.
1699
+
1700
+ Except as contained in this notice, the names of the authors
1701
+ or their institutions shall not be used in advertising or
1702
+ otherwise to promote the sale, use or other dealings in this
1703
+ Software without prior written authorization from the
1704
+ authors.
1705
+
1706
+
1707
+ ----
1708
+
1709
+ XDMCP
1710
+
1711
+ Copyright 1989, 1998 The Open Group
1712
+
1713
+ Permission to use, copy, modify, distribute, and sell this software and its
1714
+ documentation for any purpose is hereby granted without fee, provided that
1715
+ the above copyright notice appear in all copies and that both that
1716
+ copyright notice and this permission notice appear in supporting
1717
+ documentation.
1718
+
1719
+ The above copyright notice and this permission notice shall be included in
1720
+ all copies or substantial portions of the Software.
1721
+
1722
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1723
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1724
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1725
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
1726
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1727
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1728
+
1729
+ Except as contained in this notice, the name of The Open Group shall not be
1730
+ used in advertising or otherwise to promote the sale, use or other dealings
1731
+ in this Software without prior written authorization from The Open Group.
1732
+
1733
+ Author: Keith Packard, MIT X Consortium
1734
+
1735
+
1736
+ ----
1737
+
1738
+ ZLIB
1739
+
1740
+ (C) 1995-2017 Jean-loup Gailly and Mark Adler
1741
+
1742
+ This software is provided 'as-is', without any express or implied
1743
+ warranty. In no event will the authors be held liable for any damages
1744
+ arising from the use of this software.
1745
+
1746
+ Permission is granted to anyone to use this software for any purpose,
1747
+ including commercial applications, and to alter it and redistribute it
1748
+ freely, subject to the following restrictions:
1749
+
1750
+ 1. The origin of this software must not be misrepresented; you must not
1751
+ claim that you wrote the original software. If you use this software
1752
+ in a product, an acknowledgment in the product documentation would be
1753
+ appreciated but is not required.
1754
+ 2. Altered source versions must be plainly marked as such, and must not be
1755
+ misrepresented as being the original software.
1756
+ 3. This notice may not be removed or altered from any source distribution.
1757
+
1758
+ Jean-loup Gailly Mark Adler
1759
+ jloup@gzip.org madler@alumni.caltech.edu
1760
+
1761
+ If you use the zlib library in a product, we would appreciate *not* receiving
1762
+ lengthy legal documents to sign. The sources are provided for free but without
1763
+ warranty of any kind. The library has been entirely written by Jean-loup
1764
+ Gailly and Mark Adler; it does not include third-party code.
1765
+
1766
+ If you redistribute modified sources, we would appreciate that you include in
1767
+ the file ChangeLog history information documenting your changes. Please read
1768
+ the FAQ for more information on the distribution of modified source versions.
1769
+
1770
+
1771
+ ----
1772
+
1773
+ ZSTD
1774
+
1775
+ BSD License
1776
+
1777
+ For Zstandard software
1778
+
1779
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
1780
+
1781
+ Redistribution and use in source and binary forms, with or without modification,
1782
+ are permitted provided that the following conditions are met:
1783
+
1784
+ * Redistributions of source code must retain the above copyright notice, this
1785
+ list of conditions and the following disclaimer.
1786
+
1787
+ * Redistributions in binary form must reproduce the above copyright notice,
1788
+ this list of conditions and the following disclaimer in the documentation
1789
+ and/or other materials provided with the distribution.
1790
+
1791
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
1792
+ be used to endorse or promote products derived from this software without
1793
+ specific prior written permission.
1794
+
1795
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1796
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1797
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1798
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
1799
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1800
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1801
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
1802
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1803
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1804
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1805
+ ```
1806
+
1807
+ ## mlx-optiq
1808
+
1809
+ The existing quantized attention, mixed KV, and vision ports derive from
1810
+ mlx-optiq, distributed under MIT. The MIT permission and warranty terms above
1811
+ apply to those portions. Source files identify the ported algorithms.
1812
+
1813
+ ## Silero VAD
1814
+
1815
+ The voice-activity implementation follows Silero VAD.
1816
+ Source: https://github.com/snakers4/silero-vad
1817
+
1818
+ MIT License
1819
+
1820
+ Copyright (c) 2020-present Silero Team
1821
+
1822
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1823
+ of this software and associated documentation files (the "Software"), to deal
1824
+ in the Software without restriction, including without limitation the rights
1825
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1826
+ copies of the Software, and to permit persons to whom the Software is
1827
+ furnished to do so, subject to the following conditions:
1828
+
1829
+ The above copyright notice and this permission notice shall be included in all
1830
+ copies or substantial portions of the Software.
1831
+
1832
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1833
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1834
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1835
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1836
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1837
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1838
+ SOFTWARE.
1839
+
1840
+ ## DeepSpec
1841
+
1842
+ The DeepSpec draft graph and sampling implementation are ported from
1843
+ https://github.com/deepseek-ai/DeepSpec.
1844
+
1845
+ MIT License
1846
+
1847
+ Copyright (c) 2026 The DeepSpec Authors
1848
+
1849
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1850
+ of this software and associated documentation files (the "Software"), to deal
1851
+ in the Software without restriction, including without limitation the rights
1852
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1853
+ copies of the Software, and to permit persons to whom the Software is
1854
+ furnished to do so, subject to the following conditions:
1855
+
1856
+ The above copyright notice and this permission notice shall be included in all
1857
+ copies or substantial portions of the Software.
1858
+
1859
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1860
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1861
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1862
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1863
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1864
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1865
+ SOFTWARE.
1866
+
1867
+ ## XGrammar
1868
+
1869
+ Grammar-constrained decoding uses `@mlc-ai/web-xgrammar@0.1.27` (npm integrity
1870
+ `sha512-0WJvW3mjotHA2NeAfaWFE2pQkOgXH9xC2U4IQOJNcioLac0k6VjSbj14jBRprt89frnPzxLo280riaEb+ZQqbg==`),
1871
+ built from https://github.com/mlc-ai/xgrammar at commit
1872
+ `ace2321a29471130f3f64fb1882741a5547c6f36` (the npm `gitHead`). The npm package ships
1873
+ no license file. Below, verbatim at that commit: `LICENSE` (Apache-2.0, git blob
1874
+ `261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64`) and `NOTICE` (git blob
1875
+ `2d56df4754f7ebeba356393e69df5e2eef265232`).
1876
+
1877
+ ```text
1878
+ Apache License
1879
+ Version 2.0, January 2004
1880
+ http://www.apache.org/licenses/
1881
+
1882
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1883
+
1884
+ 1. Definitions.
1885
+
1886
+ "License" shall mean the terms and conditions for use, reproduction,
1887
+ and distribution as defined by Sections 1 through 9 of this document.
1888
+
1889
+ "Licensor" shall mean the copyright owner or entity authorized by
1890
+ the copyright owner that is granting the License.
1891
+
1892
+ "Legal Entity" shall mean the union of the acting entity and all
1893
+ other entities that control, are controlled by, or are under common
1894
+ control with that entity. For the purposes of this definition,
1895
+ "control" means (i) the power, direct or indirect, to cause the
1896
+ direction or management of such entity, whether by contract or
1897
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
1898
+ outstanding shares, or (iii) beneficial ownership of such entity.
1899
+
1900
+ "You" (or "Your") shall mean an individual or Legal Entity
1901
+ exercising permissions granted by this License.
1902
+
1903
+ "Source" form shall mean the preferred form for making modifications,
1904
+ including but not limited to software source code, documentation
1905
+ source, and configuration files.
1906
+
1907
+ "Object" form shall mean any form resulting from mechanical
1908
+ transformation or translation of a Source form, including but
1909
+ not limited to compiled object code, generated documentation,
1910
+ and conversions to other media types.
1911
+
1912
+ "Work" shall mean the work of authorship, whether in Source or
1913
+ Object form, made available under the License, as indicated by a
1914
+ copyright notice that is included in or attached to the work
1915
+ (an example is provided in the Appendix below).
1916
+
1917
+ "Derivative Works" shall mean any work, whether in Source or Object
1918
+ form, that is based on (or derived from) the Work and for which the
1919
+ editorial revisions, annotations, elaborations, or other modifications
1920
+ represent, as a whole, an original work of authorship. For the purposes
1921
+ of this License, Derivative Works shall not include works that remain
1922
+ separable from, or merely link (or bind by name) to the interfaces of,
1923
+ the Work and Derivative Works thereof.
1924
+
1925
+ "Contribution" shall mean any work of authorship, including
1926
+ the original version of the Work and any modifications or additions
1927
+ to that Work or Derivative Works thereof, that is intentionally
1928
+ submitted to Licensor for inclusion in the Work by the copyright owner
1929
+ or by an individual or Legal Entity authorized to submit on behalf of
1930
+ the copyright owner. For the purposes of this definition, "submitted"
1931
+ means any form of electronic, verbal, or written communication sent
1932
+ to the Licensor or its representatives, including but not limited to
1933
+ communication on electronic mailing lists, source code control systems,
1934
+ and issue tracking systems that are managed by, or on behalf of, the
1935
+ Licensor for the purpose of discussing and improving the Work, but
1936
+ excluding communication that is conspicuously marked or otherwise
1937
+ designated in writing by the copyright owner as "Not a Contribution."
1938
+
1939
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1940
+ on behalf of whom a Contribution has been received by Licensor and
1941
+ subsequently incorporated within the Work.
1942
+
1943
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1944
+ this License, each Contributor hereby grants to You a perpetual,
1945
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1946
+ copyright license to reproduce, prepare Derivative Works of,
1947
+ publicly display, publicly perform, sublicense, and distribute the
1948
+ Work and such Derivative Works in Source or Object form.
1949
+
1950
+ 3. Grant of Patent License. Subject to the terms and conditions of
1951
+ this License, each Contributor hereby grants to You a perpetual,
1952
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1953
+ (except as stated in this section) patent license to make, have made,
1954
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1955
+ where such license applies only to those patent claims licensable
1956
+ by such Contributor that are necessarily infringed by their
1957
+ Contribution(s) alone or by combination of their Contribution(s)
1958
+ with the Work to which such Contribution(s) was submitted. If You
1959
+ institute patent litigation against any entity (including a
1960
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1961
+ or a Contribution incorporated within the Work constitutes direct
1962
+ or contributory patent infringement, then any patent licenses
1963
+ granted to You under this License for that Work shall terminate
1964
+ as of the date such litigation is filed.
1965
+
1966
+ 4. Redistribution. You may reproduce and distribute copies of the
1967
+ Work or Derivative Works thereof in any medium, with or without
1968
+ modifications, and in Source or Object form, provided that You
1969
+ meet the following conditions:
1970
+
1971
+ (a) You must give any other recipients of the Work or
1972
+ Derivative Works a copy of this License; and
1973
+
1974
+ (b) You must cause any modified files to carry prominent notices
1975
+ stating that You changed the files; and
1976
+
1977
+ (c) You must retain, in the Source form of any Derivative Works
1978
+ that You distribute, all copyright, patent, trademark, and
1979
+ attribution notices from the Source form of the Work,
1980
+ excluding those notices that do not pertain to any part of
1981
+ the Derivative Works; and
1982
+
1983
+ (d) If the Work includes a "NOTICE" text file as part of its
1984
+ distribution, then any Derivative Works that You distribute must
1985
+ include a readable copy of the attribution notices contained
1986
+ within such NOTICE file, excluding those notices that do not
1987
+ pertain to any part of the Derivative Works, in at least one
1988
+ of the following places: within a NOTICE text file distributed
1989
+ as part of the Derivative Works; within the Source form or
1990
+ documentation, if provided along with the Derivative Works; or,
1991
+ within a display generated by the Derivative Works, if and
1992
+ wherever such third-party notices normally appear. The contents
1993
+ of the NOTICE file are for informational purposes only and
1994
+ do not modify the License. You may add Your own attribution
1995
+ notices within Derivative Works that You distribute, alongside
1996
+ or as an addendum to the NOTICE text from the Work, provided
1997
+ that such additional attribution notices cannot be construed
1998
+ as modifying the License.
1999
+
2000
+ You may add Your own copyright statement to Your modifications and
2001
+ may provide additional or different license terms and conditions
2002
+ for use, reproduction, or distribution of Your modifications, or
2003
+ for any such Derivative Works as a whole, provided Your use,
2004
+ reproduction, and distribution of the Work otherwise complies with
2005
+ the conditions stated in this License.
2006
+
2007
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
2008
+ any Contribution intentionally submitted for inclusion in the Work
2009
+ by You to the Licensor shall be under the terms and conditions of
2010
+ this License, without any additional terms or conditions.
2011
+ Notwithstanding the above, nothing herein shall supersede or modify
2012
+ the terms of any separate license agreement you may have executed
2013
+ with Licensor regarding such Contributions.
2014
+
2015
+ 6. Trademarks. This License does not grant permission to use the trade
2016
+ names, trademarks, service marks, or product names of the Licensor,
2017
+ except as required for reasonable and customary use in describing the
2018
+ origin of the Work and reproducing the content of the NOTICE file.
2019
+
2020
+ 7. Disclaimer of Warranty. Unless required by applicable law or
2021
+ agreed to in writing, Licensor provides the Work (and each
2022
+ Contributor provides its Contributions) on an "AS IS" BASIS,
2023
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2024
+ implied, including, without limitation, any warranties or conditions
2025
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2026
+ PARTICULAR PURPOSE. You are solely responsible for determining the
2027
+ appropriateness of using or redistributing the Work and assume any
2028
+ risks associated with Your exercise of permissions under this License.
2029
+
2030
+ 8. Limitation of Liability. In no event and under no legal theory,
2031
+ whether in tort (including negligence), contract, or otherwise,
2032
+ unless required by applicable law (such as deliberate and grossly
2033
+ negligent acts) or agreed to in writing, shall any Contributor be
2034
+ liable to You for damages, including any direct, indirect, special,
2035
+ incidental, or consequential damages of any character arising as a
2036
+ result of this License or out of the use or inability to use the
2037
+ Work (including but not limited to damages for loss of goodwill,
2038
+ work stoppage, computer failure or malfunction, or any and all
2039
+ other commercial damages or losses), even if such Contributor
2040
+ has been advised of the possibility of such damages.
2041
+
2042
+ 9. Accepting Warranty or Additional Liability. While redistributing
2043
+ the Work or Derivative Works thereof, You may choose to offer,
2044
+ and charge a fee for, acceptance of support, warranty, indemnity,
2045
+ or other liability obligations and/or rights consistent with this
2046
+ License. However, in accepting such obligations, You may act only
2047
+ on Your own behalf and on Your sole responsibility, not on behalf
2048
+ of any other Contributor, and only if You agree to indemnify,
2049
+ defend, and hold each Contributor harmless for any liability
2050
+ incurred by, or claims asserted against, such Contributor by reason
2051
+ of your accepting any such warranty or additional liability.
2052
+
2053
+ END OF TERMS AND CONDITIONS
2054
+
2055
+ APPENDIX: How to apply the Apache License to your work.
2056
+
2057
+ To apply the Apache License to your work, attach the following
2058
+ boilerplate notice, with the fields enclosed by brackets "[]"
2059
+ replaced with your own identifying information. (Don't include
2060
+ the brackets!) The text should be enclosed in the appropriate
2061
+ comment syntax for the file format. We also recommend that a
2062
+ file or class name and description of purpose be included on the
2063
+ same "printed page" as the copyright notice for easier
2064
+ identification within third-party archives.
2065
+
2066
+ Copyright [yyyy] [name of copyright owner]
2067
+
2068
+ Licensed under the Apache License, Version 2.0 (the "License");
2069
+ you may not use this file except in compliance with the License.
2070
+ You may obtain a copy of the License at
2071
+
2072
+ http://www.apache.org/licenses/LICENSE-2.0
2073
+
2074
+ Unless required by applicable law or agreed to in writing, software
2075
+ distributed under the License is distributed on an "AS IS" BASIS,
2076
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2077
+ See the License for the specific language governing permissions and
2078
+ limitations under the License.
2079
+ ```
2080
+
2081
+ ```text
2082
+ XGrammar
2083
+
2084
+ Copyright (c) 2024 by XGrammar Contributors
2085
+ ```
2086
+
2087
+ ### picojson in the XGrammar WASM
2088
+
2089
+ The package's `lib/index.js` (sha256
2090
+ `803713906fb3e53483ab03f33244a64d8ed818820be9abe520e615754bfd3e24`) embeds XGrammar's
2091
+ Emscripten WASM build, which compiles picojson from `3rdparty/picojson/picojson.h` at the
2092
+ same commit (git blob `5dcd86840955115dcf7c3cb3c524a0a502938519`); the WASM retains
2093
+ picojson's type-check strings. Below, that header's lines 1-27 (sha256
2094
+ `52a7da16781b4b899382c9ddfcf059235cdee73e2f45cfd7402c2ae9a2e9d28d`).
2095
+
2096
+ ```text
2097
+ /*
2098
+ * Copyright 2009-2010 Cybozu Labs, Inc.
2099
+ * Copyright 2011-2014 Kazuho Oku
2100
+ * All rights reserved.
2101
+ *
2102
+ * Redistribution and use in source and binary forms, with or without
2103
+ * modification, are permitted provided that the following conditions are met:
2104
+ *
2105
+ * 1. Redistributions of source code must retain the above copyright notice,
2106
+ * this list of conditions and the following disclaimer.
2107
+ *
2108
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
2109
+ * this list of conditions and the following disclaimer in the documentation
2110
+ * and/or other materials provided with the distribution.
2111
+ *
2112
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2113
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2114
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2115
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2116
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2117
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2118
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2119
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2120
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2121
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2122
+ * POSSIBILITY OF SUCH DAMAGE.
2123
+ */
2124
+ ```
2125
+
2126
+ ### Emscripten runtime in the XGrammar WASM (3.1.56 release-era match)
2127
+
2128
+ `lib/index.js` also carries Emscripten's JavaScript runtime, and the WASM links Emscripten's
2129
+ C and C++ runtime libraries. The toolchain that produced this build is not recorded: the WASM
2130
+ has no producers section, and upstream CI (an Ubuntu workflow that installs the SDK's `latest`
2131
+ release) did not make it, since the WASM names a macOS source path,
2132
+ `/Users/akaashrp/Documents/xgrammar/cpp/tokenizer_info.cc`, the npm publisher is `akaashrp`,
2133
+ and the package has no provenance attestation. Its runtime glue is a release-era match for
2134
+ Emscripten 3.1.56 (tag commit `cf90417346b78455089e64eb909d71d091ecc055`), inferred from two
2135
+ runtime-glue fingerprints: WebAssembly-check absence (Emscripten commit
2136
+ `5f9ee699090a074c140e94ed2d4cc85f1080526e`, in 3.1.56, dropped that check from builds without
2137
+ assertions) and `Module["ready"]` presence (commit `5dbbd714f1836abd4ab456fce35925310f0a17b9`,
2138
+ in 3.1.57, removed it). 3.1.56 is the only release between those commits, and none of the
2139
+ files below changed between them. The runtime includes
2140
+ Emscripten's Node.js-derived `PATH` code, and the WASM retains strings of musl's `vfprintf.c`
2141
+ (`-+ 0X0x`, `(null)`), libc++ (`NSt3__28ios_baseE`, `%a %b %d %H:%M:%S %Y`) and libc++abi
2142
+ (`terminate_handler unexpectedly returned`, `N10__cxxabiv117__class_type_infoE`). Below, from
2143
+ 3.1.56: `LICENSE` (git blob `70cabe388d27da221bd769c50b427a35354f4f1d`) with the space ending
2144
+ line 60 removed, then byte for byte `system/lib/libc/musl/COPYRIGHT` (git blob
2145
+ `c1628e9ac84f927fe791124ec172fb61c760bb9b`), `system/lib/libcxx/LICENSE.TXT` (git blob
2146
+ `e159d283443f92ac78b964d2bccebe8f95d5d445`) and `system/lib/libcxxabi/LICENSE.TXT` (git blob
2147
+ `b75c0441bcd5be32b5a07e2a1ffc7e67b6d99f16`). Whether the WASM also links LLVM compiler-rt
2148
+ cannot be established from its stripped code. The compiler-rt text is reproduced separately
2149
+ below as a conservative inclusion; neither its inclusion nor the runtime-glue fingerprints
2150
+ establish the exact build toolchain.
2151
+
2152
+ ```text
2153
+ Emscripten is available under 2 licenses, the MIT license and the
2154
+ University of Illinois/NCSA Open Source License.
2155
+
2156
+ Both are permissive open source licenses, with little if any
2157
+ practical difference between them.
2158
+
2159
+ The reason for offering both is that (1) the MIT license is
2160
+ well-known, while (2) the University of Illinois/NCSA Open Source
2161
+ License allows Emscripten's code to be integrated upstream into
2162
+ LLVM, which uses that license, should the opportunity arise.
2163
+
2164
+ The full text of both licenses follows.
2165
+
2166
+ ==============================================================================
2167
+
2168
+ Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
2169
+
2170
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2171
+ of this software and associated documentation files (the "Software"), to deal
2172
+ in the Software without restriction, including without limitation the rights
2173
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2174
+ copies of the Software, and to permit persons to whom the Software is
2175
+ furnished to do so, subject to the following conditions:
2176
+
2177
+ The above copyright notice and this permission notice shall be included in
2178
+ all copies or substantial portions of the Software.
2179
+
2180
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2181
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2182
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2183
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2184
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2185
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2186
+ THE SOFTWARE.
2187
+
2188
+ ==============================================================================
2189
+
2190
+ Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
2191
+ All rights reserved.
2192
+
2193
+ Permission is hereby granted, free of charge, to any person obtaining a
2194
+ copy of this software and associated documentation files (the
2195
+ "Software"), to deal with the Software without restriction, including
2196
+ without limitation the rights to use, copy, modify, merge, publish,
2197
+ distribute, sublicense, and/or sell copies of the Software, and to
2198
+ permit persons to whom the Software is furnished to do so, subject to
2199
+ the following conditions:
2200
+
2201
+ Redistributions of source code must retain the above copyright
2202
+ notice, this list of conditions and the following disclaimers.
2203
+
2204
+ Redistributions in binary form must reproduce the above
2205
+ copyright notice, this list of conditions and the following disclaimers
2206
+ in the documentation and/or other materials provided with the
2207
+ distribution.
2208
+
2209
+ Neither the names of Mozilla,
2210
+ nor the names of its contributors may be used to endorse
2211
+ or promote products derived from this Software without specific prior
2212
+ written permission.
2213
+
2214
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2215
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2216
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2217
+ IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
2218
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2219
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2220
+ SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
2221
+
2222
+ ==============================================================================
2223
+
2224
+ This program uses portions of Node.js source code located in src/library_path.js,
2225
+ in accordance with the terms of the MIT license. Node's license follows:
2226
+
2227
+ """
2228
+ Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2229
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2230
+ of this software and associated documentation files (the "Software"), to
2231
+ deal in the Software without restriction, including without limitation the
2232
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
2233
+ sell copies of the Software, and to permit persons to whom the Software is
2234
+ furnished to do so, subject to the following conditions:
2235
+
2236
+ The above copyright notice and this permission notice shall be included in
2237
+ all copies or substantial portions of the Software.
2238
+
2239
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2240
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2241
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2242
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2243
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2244
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2245
+ IN THE SOFTWARE.
2246
+ """
2247
+
2248
+ The musl libc project is bundled in this repo, and it has the MIT license, see
2249
+ system/lib/libc/musl/COPYRIGHT
2250
+
2251
+ The third_party/ subdirectory contains code with other licenses. None of it is
2252
+ used by default, but certain options use it (e.g., the optional closure compiler
2253
+ flag will run closure compiler from third_party/).
2254
+
2255
+ ```
2256
+
2257
+ ```text
2258
+ musl as a whole is licensed under the following standard MIT license:
2259
+
2260
+ ----------------------------------------------------------------------
2261
+ Copyright © 2005-2020 Rich Felker, et al.
2262
+
2263
+ Permission is hereby granted, free of charge, to any person obtaining
2264
+ a copy of this software and associated documentation files (the
2265
+ "Software"), to deal in the Software without restriction, including
2266
+ without limitation the rights to use, copy, modify, merge, publish,
2267
+ distribute, sublicense, and/or sell copies of the Software, and to
2268
+ permit persons to whom the Software is furnished to do so, subject to
2269
+ the following conditions:
2270
+
2271
+ The above copyright notice and this permission notice shall be
2272
+ included in all copies or substantial portions of the Software.
2273
+
2274
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2275
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2276
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2277
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2278
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2279
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2280
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2281
+ ----------------------------------------------------------------------
2282
+
2283
+ Authors/contributors include:
2284
+
2285
+ A. Wilcox
2286
+ Ada Worcester
2287
+ Alex Dowad
2288
+ Alex Suykov
2289
+ Alexander Monakov
2290
+ Andre McCurdy
2291
+ Andrew Kelley
2292
+ Anthony G. Basile
2293
+ Aric Belsito
2294
+ Arvid Picciani
2295
+ Bartosz Brachaczek
2296
+ Benjamin Peterson
2297
+ Bobby Bingham
2298
+ Boris Brezillon
2299
+ Brent Cook
2300
+ Chris Spiegel
2301
+ Clément Vasseur
2302
+ Daniel Micay
2303
+ Daniel Sabogal
2304
+ Daurnimator
2305
+ David Carlier
2306
+ David Edelsohn
2307
+ Denys Vlasenko
2308
+ Dmitry Ivanov
2309
+ Dmitry V. Levin
2310
+ Drew DeVault
2311
+ Emil Renner Berthing
2312
+ Fangrui Song
2313
+ Felix Fietkau
2314
+ Felix Janda
2315
+ Gianluca Anzolin
2316
+ Hauke Mehrtens
2317
+ He X
2318
+ Hiltjo Posthuma
2319
+ Isaac Dunham
2320
+ Jaydeep Patil
2321
+ Jens Gustedt
2322
+ Jeremy Huntwork
2323
+ Jo-Philipp Wich
2324
+ Joakim Sindholt
2325
+ John Spencer
2326
+ Julien Ramseier
2327
+ Justin Cormack
2328
+ Kaarle Ritvanen
2329
+ Khem Raj
2330
+ Kylie McClain
2331
+ Leah Neukirchen
2332
+ Luca Barbato
2333
+ Luka Perkov
2334
+ M Farkas-Dyck (Strake)
2335
+ Mahesh Bodapati
2336
+ Markus Wichmann
2337
+ Masanori Ogino
2338
+ Michael Clark
2339
+ Michael Forney
2340
+ Mikhail Kremnyov
2341
+ Natanael Copa
2342
+ Nicholas J. Kain
2343
+ orc
2344
+ Pascal Cuoq
2345
+ Patrick Oppenlander
2346
+ Petr Hosek
2347
+ Petr Skocik
2348
+ Pierre Carrier
2349
+ Reini Urban
2350
+ Rich Felker
2351
+ Richard Pennington
2352
+ Ryan Fairfax
2353
+ Samuel Holland
2354
+ Segev Finer
2355
+ Shiz
2356
+ sin
2357
+ Solar Designer
2358
+ Stefan Kristiansson
2359
+ Stefan O'Rear
2360
+ Szabolcs Nagy
2361
+ Timo Teräs
2362
+ Trutz Behn
2363
+ Valentin Ochs
2364
+ Will Dietz
2365
+ William Haddon
2366
+ William Pitcock
2367
+
2368
+ Portions of this software are derived from third-party works licensed
2369
+ under terms compatible with the above MIT license:
2370
+
2371
+ The TRE regular expression implementation (src/regex/reg* and
2372
+ src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
2373
+ under a 2-clause BSD license (license text in the source files). The
2374
+ included version has been heavily modified by Rich Felker in 2012, in
2375
+ the interests of size, simplicity, and namespace cleanliness.
2376
+
2377
+ Much of the math library code (src/math/* and src/complex/*) is
2378
+ Copyright © 1993,2004 Sun Microsystems or
2379
+ Copyright © 2003-2011 David Schultz or
2380
+ Copyright © 2003-2009 Steven G. Kargl or
2381
+ Copyright © 2003-2009 Bruce D. Evans or
2382
+ Copyright © 2008 Stephen L. Moshier or
2383
+ Copyright © 2017-2018 Arm Limited
2384
+ and labelled as such in comments in the individual source files. All
2385
+ have been licensed under extremely permissive terms.
2386
+
2387
+ The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008
2388
+ The Android Open Source Project and is licensed under a two-clause BSD
2389
+ license. It was taken from Bionic libc, used on Android.
2390
+
2391
+ The AArch64 memcpy and memset code (src/string/aarch64/*) are
2392
+ Copyright © 1999-2019, Arm Limited.
2393
+
2394
+ The implementation of DES for crypt (src/crypt/crypt_des.c) is
2395
+ Copyright © 1994 David Burren. It is licensed under a BSD license.
2396
+
2397
+ The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was
2398
+ originally written by Solar Designer and placed into the public
2399
+ domain. The code also comes with a fallback permissive license for use
2400
+ in jurisdictions that may not recognize the public domain.
2401
+
2402
+ The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011
2403
+ Valentin Ochs and is licensed under an MIT-style license.
2404
+
2405
+ The x86_64 port was written by Nicholas J. Kain and is licensed under
2406
+ the standard MIT terms.
2407
+
2408
+ The mips and microblaze ports were originally written by Richard
2409
+ Pennington for use in the ellcc project. The original code was adapted
2410
+ by Rich Felker for build system and code conventions during upstream
2411
+ integration. It is licensed under the standard MIT terms.
2412
+
2413
+ The mips64 port was contributed by Imagination Technologies and is
2414
+ licensed under the standard MIT terms.
2415
+
2416
+ The powerpc port was also originally written by Richard Pennington,
2417
+ and later supplemented and integrated by John Spencer. It is licensed
2418
+ under the standard MIT terms.
2419
+
2420
+ All other files which have no copyright comments are original works
2421
+ produced specifically for use as part of this library, written either
2422
+ by Rich Felker, the main author of the library, or by one or more
2423
+ contibutors listed above. Details on authorship of individual files
2424
+ can be found in the git version control history of the project. The
2425
+ omission of copyright and license comments in each file is in the
2426
+ interest of source tree size.
2427
+
2428
+ In addition, permission is hereby granted for all public header files
2429
+ (include/* and arch/*/bits/*) and crt files intended to be linked into
2430
+ applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit
2431
+ the copyright notice and permission notice otherwise required by the
2432
+ license, and to use these files without any requirement of
2433
+ attribution. These files include substantial contributions from:
2434
+
2435
+ Bobby Bingham
2436
+ John Spencer
2437
+ Nicholas J. Kain
2438
+ Rich Felker
2439
+ Richard Pennington
2440
+ Stefan Kristiansson
2441
+ Szabolcs Nagy
2442
+
2443
+ all of whom have explicitly granted such permission.
2444
+
2445
+ This file previously contained text expressing a belief that most of
2446
+ the files covered by the above exception were sufficiently trivial not
2447
+ to be subject to copyright, resulting in confusion over whether it
2448
+ negated the permissions granted in the license. In the spirit of
2449
+ permissive licensing, and of not having licensing issues being an
2450
+ obstacle to adoption, that text has been removed.
2451
+ ```
2452
+
2453
+ ```text
2454
+ ==============================================================================
2455
+ The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
2456
+ ==============================================================================
2457
+
2458
+ Apache License
2459
+ Version 2.0, January 2004
2460
+ http://www.apache.org/licenses/
2461
+
2462
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
2463
+
2464
+ 1. Definitions.
2465
+
2466
+ "License" shall mean the terms and conditions for use, reproduction,
2467
+ and distribution as defined by Sections 1 through 9 of this document.
2468
+
2469
+ "Licensor" shall mean the copyright owner or entity authorized by
2470
+ the copyright owner that is granting the License.
2471
+
2472
+ "Legal Entity" shall mean the union of the acting entity and all
2473
+ other entities that control, are controlled by, or are under common
2474
+ control with that entity. For the purposes of this definition,
2475
+ "control" means (i) the power, direct or indirect, to cause the
2476
+ direction or management of such entity, whether by contract or
2477
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
2478
+ outstanding shares, or (iii) beneficial ownership of such entity.
2479
+
2480
+ "You" (or "Your") shall mean an individual or Legal Entity
2481
+ exercising permissions granted by this License.
2482
+
2483
+ "Source" form shall mean the preferred form for making modifications,
2484
+ including but not limited to software source code, documentation
2485
+ source, and configuration files.
2486
+
2487
+ "Object" form shall mean any form resulting from mechanical
2488
+ transformation or translation of a Source form, including but
2489
+ not limited to compiled object code, generated documentation,
2490
+ and conversions to other media types.
2491
+
2492
+ "Work" shall mean the work of authorship, whether in Source or
2493
+ Object form, made available under the License, as indicated by a
2494
+ copyright notice that is included in or attached to the work
2495
+ (an example is provided in the Appendix below).
2496
+
2497
+ "Derivative Works" shall mean any work, whether in Source or Object
2498
+ form, that is based on (or derived from) the Work and for which the
2499
+ editorial revisions, annotations, elaborations, or other modifications
2500
+ represent, as a whole, an original work of authorship. For the purposes
2501
+ of this License, Derivative Works shall not include works that remain
2502
+ separable from, or merely link (or bind by name) to the interfaces of,
2503
+ the Work and Derivative Works thereof.
2504
+
2505
+ "Contribution" shall mean any work of authorship, including
2506
+ the original version of the Work and any modifications or additions
2507
+ to that Work or Derivative Works thereof, that is intentionally
2508
+ submitted to Licensor for inclusion in the Work by the copyright owner
2509
+ or by an individual or Legal Entity authorized to submit on behalf of
2510
+ the copyright owner. For the purposes of this definition, "submitted"
2511
+ means any form of electronic, verbal, or written communication sent
2512
+ to the Licensor or its representatives, including but not limited to
2513
+ communication on electronic mailing lists, source code control systems,
2514
+ and issue tracking systems that are managed by, or on behalf of, the
2515
+ Licensor for the purpose of discussing and improving the Work, but
2516
+ excluding communication that is conspicuously marked or otherwise
2517
+ designated in writing by the copyright owner as "Not a Contribution."
2518
+
2519
+ "Contributor" shall mean Licensor and any individual or Legal Entity
2520
+ on behalf of whom a Contribution has been received by Licensor and
2521
+ subsequently incorporated within the Work.
2522
+
2523
+ 2. Grant of Copyright License. Subject to the terms and conditions of
2524
+ this License, each Contributor hereby grants to You a perpetual,
2525
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2526
+ copyright license to reproduce, prepare Derivative Works of,
2527
+ publicly display, publicly perform, sublicense, and distribute the
2528
+ Work and such Derivative Works in Source or Object form.
2529
+
2530
+ 3. Grant of Patent License. Subject to the terms and conditions of
2531
+ this License, each Contributor hereby grants to You a perpetual,
2532
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2533
+ (except as stated in this section) patent license to make, have made,
2534
+ use, offer to sell, sell, import, and otherwise transfer the Work,
2535
+ where such license applies only to those patent claims licensable
2536
+ by such Contributor that are necessarily infringed by their
2537
+ Contribution(s) alone or by combination of their Contribution(s)
2538
+ with the Work to which such Contribution(s) was submitted. If You
2539
+ institute patent litigation against any entity (including a
2540
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
2541
+ or a Contribution incorporated within the Work constitutes direct
2542
+ or contributory patent infringement, then any patent licenses
2543
+ granted to You under this License for that Work shall terminate
2544
+ as of the date such litigation is filed.
2545
+
2546
+ 4. Redistribution. You may reproduce and distribute copies of the
2547
+ Work or Derivative Works thereof in any medium, with or without
2548
+ modifications, and in Source or Object form, provided that You
2549
+ meet the following conditions:
2550
+
2551
+ (a) You must give any other recipients of the Work or
2552
+ Derivative Works a copy of this License; and
2553
+
2554
+ (b) You must cause any modified files to carry prominent notices
2555
+ stating that You changed the files; and
2556
+
2557
+ (c) You must retain, in the Source form of any Derivative Works
2558
+ that You distribute, all copyright, patent, trademark, and
2559
+ attribution notices from the Source form of the Work,
2560
+ excluding those notices that do not pertain to any part of
2561
+ the Derivative Works; and
2562
+
2563
+ (d) If the Work includes a "NOTICE" text file as part of its
2564
+ distribution, then any Derivative Works that You distribute must
2565
+ include a readable copy of the attribution notices contained
2566
+ within such NOTICE file, excluding those notices that do not
2567
+ pertain to any part of the Derivative Works, in at least one
2568
+ of the following places: within a NOTICE text file distributed
2569
+ as part of the Derivative Works; within the Source form or
2570
+ documentation, if provided along with the Derivative Works; or,
2571
+ within a display generated by the Derivative Works, if and
2572
+ wherever such third-party notices normally appear. The contents
2573
+ of the NOTICE file are for informational purposes only and
2574
+ do not modify the License. You may add Your own attribution
2575
+ notices within Derivative Works that You distribute, alongside
2576
+ or as an addendum to the NOTICE text from the Work, provided
2577
+ that such additional attribution notices cannot be construed
2578
+ as modifying the License.
2579
+
2580
+ You may add Your own copyright statement to Your modifications and
2581
+ may provide additional or different license terms and conditions
2582
+ for use, reproduction, or distribution of Your modifications, or
2583
+ for any such Derivative Works as a whole, provided Your use,
2584
+ reproduction, and distribution of the Work otherwise complies with
2585
+ the conditions stated in this License.
2586
+
2587
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
2588
+ any Contribution intentionally submitted for inclusion in the Work
2589
+ by You to the Licensor shall be under the terms and conditions of
2590
+ this License, without any additional terms or conditions.
2591
+ Notwithstanding the above, nothing herein shall supersede or modify
2592
+ the terms of any separate license agreement you may have executed
2593
+ with Licensor regarding such Contributions.
2594
+
2595
+ 6. Trademarks. This License does not grant permission to use the trade
2596
+ names, trademarks, service marks, or product names of the Licensor,
2597
+ except as required for reasonable and customary use in describing the
2598
+ origin of the Work and reproducing the content of the NOTICE file.
2599
+
2600
+ 7. Disclaimer of Warranty. Unless required by applicable law or
2601
+ agreed to in writing, Licensor provides the Work (and each
2602
+ Contributor provides its Contributions) on an "AS IS" BASIS,
2603
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2604
+ implied, including, without limitation, any warranties or conditions
2605
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2606
+ PARTICULAR PURPOSE. You are solely responsible for determining the
2607
+ appropriateness of using or redistributing the Work and assume any
2608
+ risks associated with Your exercise of permissions under this License.
2609
+
2610
+ 8. Limitation of Liability. In no event and under no legal theory,
2611
+ whether in tort (including negligence), contract, or otherwise,
2612
+ unless required by applicable law (such as deliberate and grossly
2613
+ negligent acts) or agreed to in writing, shall any Contributor be
2614
+ liable to You for damages, including any direct, indirect, special,
2615
+ incidental, or consequential damages of any character arising as a
2616
+ result of this License or out of the use or inability to use the
2617
+ Work (including but not limited to damages for loss of goodwill,
2618
+ work stoppage, computer failure or malfunction, or any and all
2619
+ other commercial damages or losses), even if such Contributor
2620
+ has been advised of the possibility of such damages.
2621
+
2622
+ 9. Accepting Warranty or Additional Liability. While redistributing
2623
+ the Work or Derivative Works thereof, You may choose to offer,
2624
+ and charge a fee for, acceptance of support, warranty, indemnity,
2625
+ or other liability obligations and/or rights consistent with this
2626
+ License. However, in accepting such obligations, You may act only
2627
+ on Your own behalf and on Your sole responsibility, not on behalf
2628
+ of any other Contributor, and only if You agree to indemnify,
2629
+ defend, and hold each Contributor harmless for any liability
2630
+ incurred by, or claims asserted against, such Contributor by reason
2631
+ of your accepting any such warranty or additional liability.
2632
+
2633
+ END OF TERMS AND CONDITIONS
2634
+
2635
+ APPENDIX: How to apply the Apache License to your work.
2636
+
2637
+ To apply the Apache License to your work, attach the following
2638
+ boilerplate notice, with the fields enclosed by brackets "[]"
2639
+ replaced with your own identifying information. (Don't include
2640
+ the brackets!) The text should be enclosed in the appropriate
2641
+ comment syntax for the file format. We also recommend that a
2642
+ file or class name and description of purpose be included on the
2643
+ same "printed page" as the copyright notice for easier
2644
+ identification within third-party archives.
2645
+
2646
+ Copyright [yyyy] [name of copyright owner]
2647
+
2648
+ Licensed under the Apache License, Version 2.0 (the "License");
2649
+ you may not use this file except in compliance with the License.
2650
+ You may obtain a copy of the License at
2651
+
2652
+ http://www.apache.org/licenses/LICENSE-2.0
2653
+
2654
+ Unless required by applicable law or agreed to in writing, software
2655
+ distributed under the License is distributed on an "AS IS" BASIS,
2656
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2657
+ See the License for the specific language governing permissions and
2658
+ limitations under the License.
2659
+
2660
+
2661
+ ---- LLVM Exceptions to the Apache 2.0 License ----
2662
+
2663
+ As an exception, if, as a result of your compiling your source code, portions
2664
+ of this Software are embedded into an Object form of such source code, you
2665
+ may redistribute such embedded portions in such Object form without complying
2666
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
2667
+
2668
+ In addition, if you combine or link compiled forms of this Software with
2669
+ software that is licensed under the GPLv2 ("Combined Software") and if a
2670
+ court of competent jurisdiction determines that the patent provision (Section
2671
+ 3), the indemnity provision (Section 9) or other Section of the License
2672
+ conflicts with the conditions of the GPLv2, you may retroactively and
2673
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
2674
+ the License, but only in their entirety and only with respect to the Combined
2675
+ Software.
2676
+
2677
+ ==============================================================================
2678
+ Software from third parties included in the LLVM Project:
2679
+ ==============================================================================
2680
+ The LLVM Project contains third party software which is under different license
2681
+ terms. All such code will be identified clearly using at least one of two
2682
+ mechanisms:
2683
+ 1) It will be in a separate directory tree with its own `LICENSE.txt` or
2684
+ `LICENSE` file at the top containing the specific license and restrictions
2685
+ which apply to that software, or
2686
+ 2) It will contain specific license and restriction terms at the top of every
2687
+ file.
2688
+
2689
+ ==============================================================================
2690
+ Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
2691
+ ==============================================================================
2692
+
2693
+ The libc++ library is dual licensed under both the University of Illinois
2694
+ "BSD-Like" license and the MIT license. As a user of this code you may choose
2695
+ to use it under either license. As a contributor, you agree to allow your code
2696
+ to be used under both.
2697
+
2698
+ Full text of the relevant licenses is included below.
2699
+
2700
+ ==============================================================================
2701
+
2702
+ University of Illinois/NCSA
2703
+ Open Source License
2704
+
2705
+ Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT
2706
+
2707
+ All rights reserved.
2708
+
2709
+ Developed by:
2710
+
2711
+ LLVM Team
2712
+
2713
+ University of Illinois at Urbana-Champaign
2714
+
2715
+ http://llvm.org
2716
+
2717
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
2718
+ this software and associated documentation files (the "Software"), to deal with
2719
+ the Software without restriction, including without limitation the rights to
2720
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
2721
+ of the Software, and to permit persons to whom the Software is furnished to do
2722
+ so, subject to the following conditions:
2723
+
2724
+ * Redistributions of source code must retain the above copyright notice,
2725
+ this list of conditions and the following disclaimers.
2726
+
2727
+ * Redistributions in binary form must reproduce the above copyright notice,
2728
+ this list of conditions and the following disclaimers in the
2729
+ documentation and/or other materials provided with the distribution.
2730
+
2731
+ * Neither the names of the LLVM Team, University of Illinois at
2732
+ Urbana-Champaign, nor the names of its contributors may be used to
2733
+ endorse or promote products derived from this Software without specific
2734
+ prior written permission.
2735
+
2736
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2737
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
2738
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2739
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2740
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2741
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
2742
+ SOFTWARE.
2743
+
2744
+ ==============================================================================
2745
+
2746
+ Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT
2747
+
2748
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2749
+ of this software and associated documentation files (the "Software"), to deal
2750
+ in the Software without restriction, including without limitation the rights
2751
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2752
+ copies of the Software, and to permit persons to whom the Software is
2753
+ furnished to do so, subject to the following conditions:
2754
+
2755
+ The above copyright notice and this permission notice shall be included in
2756
+ all copies or substantial portions of the Software.
2757
+
2758
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2759
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2760
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2761
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2762
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2763
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2764
+ THE SOFTWARE.
2765
+ ```
2766
+
2767
+ ```text
2768
+ ==============================================================================
2769
+ The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
2770
+ ==============================================================================
2771
+
2772
+ Apache License
2773
+ Version 2.0, January 2004
2774
+ http://www.apache.org/licenses/
2775
+
2776
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
2777
+
2778
+ 1. Definitions.
2779
+
2780
+ "License" shall mean the terms and conditions for use, reproduction,
2781
+ and distribution as defined by Sections 1 through 9 of this document.
2782
+
2783
+ "Licensor" shall mean the copyright owner or entity authorized by
2784
+ the copyright owner that is granting the License.
2785
+
2786
+ "Legal Entity" shall mean the union of the acting entity and all
2787
+ other entities that control, are controlled by, or are under common
2788
+ control with that entity. For the purposes of this definition,
2789
+ "control" means (i) the power, direct or indirect, to cause the
2790
+ direction or management of such entity, whether by contract or
2791
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
2792
+ outstanding shares, or (iii) beneficial ownership of such entity.
2793
+
2794
+ "You" (or "Your") shall mean an individual or Legal Entity
2795
+ exercising permissions granted by this License.
2796
+
2797
+ "Source" form shall mean the preferred form for making modifications,
2798
+ including but not limited to software source code, documentation
2799
+ source, and configuration files.
2800
+
2801
+ "Object" form shall mean any form resulting from mechanical
2802
+ transformation or translation of a Source form, including but
2803
+ not limited to compiled object code, generated documentation,
2804
+ and conversions to other media types.
2805
+
2806
+ "Work" shall mean the work of authorship, whether in Source or
2807
+ Object form, made available under the License, as indicated by a
2808
+ copyright notice that is included in or attached to the work
2809
+ (an example is provided in the Appendix below).
2810
+
2811
+ "Derivative Works" shall mean any work, whether in Source or Object
2812
+ form, that is based on (or derived from) the Work and for which the
2813
+ editorial revisions, annotations, elaborations, or other modifications
2814
+ represent, as a whole, an original work of authorship. For the purposes
2815
+ of this License, Derivative Works shall not include works that remain
2816
+ separable from, or merely link (or bind by name) to the interfaces of,
2817
+ the Work and Derivative Works thereof.
2818
+
2819
+ "Contribution" shall mean any work of authorship, including
2820
+ the original version of the Work and any modifications or additions
2821
+ to that Work or Derivative Works thereof, that is intentionally
2822
+ submitted to Licensor for inclusion in the Work by the copyright owner
2823
+ or by an individual or Legal Entity authorized to submit on behalf of
2824
+ the copyright owner. For the purposes of this definition, "submitted"
2825
+ means any form of electronic, verbal, or written communication sent
2826
+ to the Licensor or its representatives, including but not limited to
2827
+ communication on electronic mailing lists, source code control systems,
2828
+ and issue tracking systems that are managed by, or on behalf of, the
2829
+ Licensor for the purpose of discussing and improving the Work, but
2830
+ excluding communication that is conspicuously marked or otherwise
2831
+ designated in writing by the copyright owner as "Not a Contribution."
2832
+
2833
+ "Contributor" shall mean Licensor and any individual or Legal Entity
2834
+ on behalf of whom a Contribution has been received by Licensor and
2835
+ subsequently incorporated within the Work.
2836
+
2837
+ 2. Grant of Copyright License. Subject to the terms and conditions of
2838
+ this License, each Contributor hereby grants to You a perpetual,
2839
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2840
+ copyright license to reproduce, prepare Derivative Works of,
2841
+ publicly display, publicly perform, sublicense, and distribute the
2842
+ Work and such Derivative Works in Source or Object form.
2843
+
2844
+ 3. Grant of Patent License. Subject to the terms and conditions of
2845
+ this License, each Contributor hereby grants to You a perpetual,
2846
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2847
+ (except as stated in this section) patent license to make, have made,
2848
+ use, offer to sell, sell, import, and otherwise transfer the Work,
2849
+ where such license applies only to those patent claims licensable
2850
+ by such Contributor that are necessarily infringed by their
2851
+ Contribution(s) alone or by combination of their Contribution(s)
2852
+ with the Work to which such Contribution(s) was submitted. If You
2853
+ institute patent litigation against any entity (including a
2854
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
2855
+ or a Contribution incorporated within the Work constitutes direct
2856
+ or contributory patent infringement, then any patent licenses
2857
+ granted to You under this License for that Work shall terminate
2858
+ as of the date such litigation is filed.
2859
+
2860
+ 4. Redistribution. You may reproduce and distribute copies of the
2861
+ Work or Derivative Works thereof in any medium, with or without
2862
+ modifications, and in Source or Object form, provided that You
2863
+ meet the following conditions:
2864
+
2865
+ (a) You must give any other recipients of the Work or
2866
+ Derivative Works a copy of this License; and
2867
+
2868
+ (b) You must cause any modified files to carry prominent notices
2869
+ stating that You changed the files; and
2870
+
2871
+ (c) You must retain, in the Source form of any Derivative Works
2872
+ that You distribute, all copyright, patent, trademark, and
2873
+ attribution notices from the Source form of the Work,
2874
+ excluding those notices that do not pertain to any part of
2875
+ the Derivative Works; and
2876
+
2877
+ (d) If the Work includes a "NOTICE" text file as part of its
2878
+ distribution, then any Derivative Works that You distribute must
2879
+ include a readable copy of the attribution notices contained
2880
+ within such NOTICE file, excluding those notices that do not
2881
+ pertain to any part of the Derivative Works, in at least one
2882
+ of the following places: within a NOTICE text file distributed
2883
+ as part of the Derivative Works; within the Source form or
2884
+ documentation, if provided along with the Derivative Works; or,
2885
+ within a display generated by the Derivative Works, if and
2886
+ wherever such third-party notices normally appear. The contents
2887
+ of the NOTICE file are for informational purposes only and
2888
+ do not modify the License. You may add Your own attribution
2889
+ notices within Derivative Works that You distribute, alongside
2890
+ or as an addendum to the NOTICE text from the Work, provided
2891
+ that such additional attribution notices cannot be construed
2892
+ as modifying the License.
2893
+
2894
+ You may add Your own copyright statement to Your modifications and
2895
+ may provide additional or different license terms and conditions
2896
+ for use, reproduction, or distribution of Your modifications, or
2897
+ for any such Derivative Works as a whole, provided Your use,
2898
+ reproduction, and distribution of the Work otherwise complies with
2899
+ the conditions stated in this License.
2900
+
2901
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
2902
+ any Contribution intentionally submitted for inclusion in the Work
2903
+ by You to the Licensor shall be under the terms and conditions of
2904
+ this License, without any additional terms or conditions.
2905
+ Notwithstanding the above, nothing herein shall supersede or modify
2906
+ the terms of any separate license agreement you may have executed
2907
+ with Licensor regarding such Contributions.
2908
+
2909
+ 6. Trademarks. This License does not grant permission to use the trade
2910
+ names, trademarks, service marks, or product names of the Licensor,
2911
+ except as required for reasonable and customary use in describing the
2912
+ origin of the Work and reproducing the content of the NOTICE file.
2913
+
2914
+ 7. Disclaimer of Warranty. Unless required by applicable law or
2915
+ agreed to in writing, Licensor provides the Work (and each
2916
+ Contributor provides its Contributions) on an "AS IS" BASIS,
2917
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2918
+ implied, including, without limitation, any warranties or conditions
2919
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2920
+ PARTICULAR PURPOSE. You are solely responsible for determining the
2921
+ appropriateness of using or redistributing the Work and assume any
2922
+ risks associated with Your exercise of permissions under this License.
2923
+
2924
+ 8. Limitation of Liability. In no event and under no legal theory,
2925
+ whether in tort (including negligence), contract, or otherwise,
2926
+ unless required by applicable law (such as deliberate and grossly
2927
+ negligent acts) or agreed to in writing, shall any Contributor be
2928
+ liable to You for damages, including any direct, indirect, special,
2929
+ incidental, or consequential damages of any character arising as a
2930
+ result of this License or out of the use or inability to use the
2931
+ Work (including but not limited to damages for loss of goodwill,
2932
+ work stoppage, computer failure or malfunction, or any and all
2933
+ other commercial damages or losses), even if such Contributor
2934
+ has been advised of the possibility of such damages.
2935
+
2936
+ 9. Accepting Warranty or Additional Liability. While redistributing
2937
+ the Work or Derivative Works thereof, You may choose to offer,
2938
+ and charge a fee for, acceptance of support, warranty, indemnity,
2939
+ or other liability obligations and/or rights consistent with this
2940
+ License. However, in accepting such obligations, You may act only
2941
+ on Your own behalf and on Your sole responsibility, not on behalf
2942
+ of any other Contributor, and only if You agree to indemnify,
2943
+ defend, and hold each Contributor harmless for any liability
2944
+ incurred by, or claims asserted against, such Contributor by reason
2945
+ of your accepting any such warranty or additional liability.
2946
+
2947
+ END OF TERMS AND CONDITIONS
2948
+
2949
+ APPENDIX: How to apply the Apache License to your work.
2950
+
2951
+ To apply the Apache License to your work, attach the following
2952
+ boilerplate notice, with the fields enclosed by brackets "[]"
2953
+ replaced with your own identifying information. (Don't include
2954
+ the brackets!) The text should be enclosed in the appropriate
2955
+ comment syntax for the file format. We also recommend that a
2956
+ file or class name and description of purpose be included on the
2957
+ same "printed page" as the copyright notice for easier
2958
+ identification within third-party archives.
2959
+
2960
+ Copyright [yyyy] [name of copyright owner]
2961
+
2962
+ Licensed under the Apache License, Version 2.0 (the "License");
2963
+ you may not use this file except in compliance with the License.
2964
+ You may obtain a copy of the License at
2965
+
2966
+ http://www.apache.org/licenses/LICENSE-2.0
2967
+
2968
+ Unless required by applicable law or agreed to in writing, software
2969
+ distributed under the License is distributed on an "AS IS" BASIS,
2970
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2971
+ See the License for the specific language governing permissions and
2972
+ limitations under the License.
2973
+
2974
+
2975
+ ---- LLVM Exceptions to the Apache 2.0 License ----
2976
+
2977
+ As an exception, if, as a result of your compiling your source code, portions
2978
+ of this Software are embedded into an Object form of such source code, you
2979
+ may redistribute such embedded portions in such Object form without complying
2980
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
2981
+
2982
+ In addition, if you combine or link compiled forms of this Software with
2983
+ software that is licensed under the GPLv2 ("Combined Software") and if a
2984
+ court of competent jurisdiction determines that the patent provision (Section
2985
+ 3), the indemnity provision (Section 9) or other Section of the License
2986
+ conflicts with the conditions of the GPLv2, you may retroactively and
2987
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
2988
+ the License, but only in their entirety and only with respect to the Combined
2989
+ Software.
2990
+
2991
+ ==============================================================================
2992
+ Software from third parties included in the LLVM Project:
2993
+ ==============================================================================
2994
+ The LLVM Project contains third party software which is under different license
2995
+ terms. All such code will be identified clearly using at least one of two
2996
+ mechanisms:
2997
+ 1) It will be in a separate directory tree with its own `LICENSE.txt` or
2998
+ `LICENSE` file at the top containing the specific license and restrictions
2999
+ which apply to that software, or
3000
+ 2) It will contain specific license and restriction terms at the top of every
3001
+ file.
3002
+
3003
+ ==============================================================================
3004
+ Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
3005
+ ==============================================================================
3006
+
3007
+ The libc++abi library is dual licensed under both the University of Illinois
3008
+ "BSD-Like" license and the MIT license. As a user of this code you may choose
3009
+ to use it under either license. As a contributor, you agree to allow your code
3010
+ to be used under both.
3011
+
3012
+ Full text of the relevant licenses is included below.
3013
+
3014
+ ==============================================================================
3015
+
3016
+ University of Illinois/NCSA
3017
+ Open Source License
3018
+
3019
+ Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT
3020
+
3021
+ All rights reserved.
3022
+
3023
+ Developed by:
3024
+
3025
+ LLVM Team
3026
+
3027
+ University of Illinois at Urbana-Champaign
3028
+
3029
+ http://llvm.org
3030
+
3031
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
3032
+ this software and associated documentation files (the "Software"), to deal with
3033
+ the Software without restriction, including without limitation the rights to
3034
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
3035
+ of the Software, and to permit persons to whom the Software is furnished to do
3036
+ so, subject to the following conditions:
3037
+
3038
+ * Redistributions of source code must retain the above copyright notice,
3039
+ this list of conditions and the following disclaimers.
3040
+
3041
+ * Redistributions in binary form must reproduce the above copyright notice,
3042
+ this list of conditions and the following disclaimers in the
3043
+ documentation and/or other materials provided with the distribution.
3044
+
3045
+ * Neither the names of the LLVM Team, University of Illinois at
3046
+ Urbana-Champaign, nor the names of its contributors may be used to
3047
+ endorse or promote products derived from this Software without specific
3048
+ prior written permission.
3049
+
3050
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3051
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
3052
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3053
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3054
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3055
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
3056
+ SOFTWARE.
3057
+
3058
+ ==============================================================================
3059
+
3060
+ Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT
3061
+
3062
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3063
+ of this software and associated documentation files (the "Software"), to deal
3064
+ in the Software without restriction, including without limitation the rights
3065
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3066
+ copies of the Software, and to permit persons to whom the Software is
3067
+ furnished to do so, subject to the following conditions:
3068
+
3069
+ The above copyright notice and this permission notice shall be included in
3070
+ all copies or substantial portions of the Software.
3071
+
3072
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3073
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3074
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3075
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3076
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3077
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3078
+ THE SOFTWARE.
3079
+ ```
3080
+
3081
+ ### LLVM compiler-rt license (conservative inclusion)
3082
+
3083
+ The exact Emscripten toolchain used to build the shipped XGrammar WASM is unknown,
3084
+ and compiler-rt linkage is unconfirmed. To cover possible embedded compiler runtime code,
3085
+ the complete Emscripten 3.1.56 `system/lib/compiler-rt/LICENSE.TXT` is reproduced below,
3086
+ including the Apache-2.0 terms, LLVM exceptions and legacy notices. This is a conservative
3087
+ notice inclusion, not evidence of a particular compiler version or linked object.
3088
+ Source: https://github.com/emscripten-core/emscripten/blob/cf90417346b78455089e64eb909d71d091ecc055/system/lib/compiler-rt/LICENSE.TXT
3089
+ (git blob `5a79a1b9d5cb0af9a779751f07033e44ca3b14d8`, SHA256
3090
+ `1a8f1058753f1ba890de984e48f0242a3a5c29a6a8f2ed9fd813f36985387e8d`), copied byte for byte.
3091
+
3092
+ ```text
3093
+ ==============================================================================
3094
+ The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
3095
+ ==============================================================================
3096
+
3097
+ Apache License
3098
+ Version 2.0, January 2004
3099
+ http://www.apache.org/licenses/
3100
+
3101
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
3102
+
3103
+ 1. Definitions.
3104
+
3105
+ "License" shall mean the terms and conditions for use, reproduction,
3106
+ and distribution as defined by Sections 1 through 9 of this document.
3107
+
3108
+ "Licensor" shall mean the copyright owner or entity authorized by
3109
+ the copyright owner that is granting the License.
3110
+
3111
+ "Legal Entity" shall mean the union of the acting entity and all
3112
+ other entities that control, are controlled by, or are under common
3113
+ control with that entity. For the purposes of this definition,
3114
+ "control" means (i) the power, direct or indirect, to cause the
3115
+ direction or management of such entity, whether by contract or
3116
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
3117
+ outstanding shares, or (iii) beneficial ownership of such entity.
3118
+
3119
+ "You" (or "Your") shall mean an individual or Legal Entity
3120
+ exercising permissions granted by this License.
3121
+
3122
+ "Source" form shall mean the preferred form for making modifications,
3123
+ including but not limited to software source code, documentation
3124
+ source, and configuration files.
3125
+
3126
+ "Object" form shall mean any form resulting from mechanical
3127
+ transformation or translation of a Source form, including but
3128
+ not limited to compiled object code, generated documentation,
3129
+ and conversions to other media types.
3130
+
3131
+ "Work" shall mean the work of authorship, whether in Source or
3132
+ Object form, made available under the License, as indicated by a
3133
+ copyright notice that is included in or attached to the work
3134
+ (an example is provided in the Appendix below).
3135
+
3136
+ "Derivative Works" shall mean any work, whether in Source or Object
3137
+ form, that is based on (or derived from) the Work and for which the
3138
+ editorial revisions, annotations, elaborations, or other modifications
3139
+ represent, as a whole, an original work of authorship. For the purposes
3140
+ of this License, Derivative Works shall not include works that remain
3141
+ separable from, or merely link (or bind by name) to the interfaces of,
3142
+ the Work and Derivative Works thereof.
3143
+
3144
+ "Contribution" shall mean any work of authorship, including
3145
+ the original version of the Work and any modifications or additions
3146
+ to that Work or Derivative Works thereof, that is intentionally
3147
+ submitted to Licensor for inclusion in the Work by the copyright owner
3148
+ or by an individual or Legal Entity authorized to submit on behalf of
3149
+ the copyright owner. For the purposes of this definition, "submitted"
3150
+ means any form of electronic, verbal, or written communication sent
3151
+ to the Licensor or its representatives, including but not limited to
3152
+ communication on electronic mailing lists, source code control systems,
3153
+ and issue tracking systems that are managed by, or on behalf of, the
3154
+ Licensor for the purpose of discussing and improving the Work, but
3155
+ excluding communication that is conspicuously marked or otherwise
3156
+ designated in writing by the copyright owner as "Not a Contribution."
3157
+
3158
+ "Contributor" shall mean Licensor and any individual or Legal Entity
3159
+ on behalf of whom a Contribution has been received by Licensor and
3160
+ subsequently incorporated within the Work.
3161
+
3162
+ 2. Grant of Copyright License. Subject to the terms and conditions of
3163
+ this License, each Contributor hereby grants to You a perpetual,
3164
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3165
+ copyright license to reproduce, prepare Derivative Works of,
3166
+ publicly display, publicly perform, sublicense, and distribute the
3167
+ Work and such Derivative Works in Source or Object form.
3168
+
3169
+ 3. Grant of Patent License. Subject to the terms and conditions of
3170
+ this License, each Contributor hereby grants to You a perpetual,
3171
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3172
+ (except as stated in this section) patent license to make, have made,
3173
+ use, offer to sell, sell, import, and otherwise transfer the Work,
3174
+ where such license applies only to those patent claims licensable
3175
+ by such Contributor that are necessarily infringed by their
3176
+ Contribution(s) alone or by combination of their Contribution(s)
3177
+ with the Work to which such Contribution(s) was submitted. If You
3178
+ institute patent litigation against any entity (including a
3179
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
3180
+ or a Contribution incorporated within the Work constitutes direct
3181
+ or contributory patent infringement, then any patent licenses
3182
+ granted to You under this License for that Work shall terminate
3183
+ as of the date such litigation is filed.
3184
+
3185
+ 4. Redistribution. You may reproduce and distribute copies of the
3186
+ Work or Derivative Works thereof in any medium, with or without
3187
+ modifications, and in Source or Object form, provided that You
3188
+ meet the following conditions:
3189
+
3190
+ (a) You must give any other recipients of the Work or
3191
+ Derivative Works a copy of this License; and
3192
+
3193
+ (b) You must cause any modified files to carry prominent notices
3194
+ stating that You changed the files; and
3195
+
3196
+ (c) You must retain, in the Source form of any Derivative Works
3197
+ that You distribute, all copyright, patent, trademark, and
3198
+ attribution notices from the Source form of the Work,
3199
+ excluding those notices that do not pertain to any part of
3200
+ the Derivative Works; and
3201
+
3202
+ (d) If the Work includes a "NOTICE" text file as part of its
3203
+ distribution, then any Derivative Works that You distribute must
3204
+ include a readable copy of the attribution notices contained
3205
+ within such NOTICE file, excluding those notices that do not
3206
+ pertain to any part of the Derivative Works, in at least one
3207
+ of the following places: within a NOTICE text file distributed
3208
+ as part of the Derivative Works; within the Source form or
3209
+ documentation, if provided along with the Derivative Works; or,
3210
+ within a display generated by the Derivative Works, if and
3211
+ wherever such third-party notices normally appear. The contents
3212
+ of the NOTICE file are for informational purposes only and
3213
+ do not modify the License. You may add Your own attribution
3214
+ notices within Derivative Works that You distribute, alongside
3215
+ or as an addendum to the NOTICE text from the Work, provided
3216
+ that such additional attribution notices cannot be construed
3217
+ as modifying the License.
3218
+
3219
+ You may add Your own copyright statement to Your modifications and
3220
+ may provide additional or different license terms and conditions
3221
+ for use, reproduction, or distribution of Your modifications, or
3222
+ for any such Derivative Works as a whole, provided Your use,
3223
+ reproduction, and distribution of the Work otherwise complies with
3224
+ the conditions stated in this License.
3225
+
3226
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
3227
+ any Contribution intentionally submitted for inclusion in the Work
3228
+ by You to the Licensor shall be under the terms and conditions of
3229
+ this License, without any additional terms or conditions.
3230
+ Notwithstanding the above, nothing herein shall supersede or modify
3231
+ the terms of any separate license agreement you may have executed
3232
+ with Licensor regarding such Contributions.
3233
+
3234
+ 6. Trademarks. This License does not grant permission to use the trade
3235
+ names, trademarks, service marks, or product names of the Licensor,
3236
+ except as required for reasonable and customary use in describing the
3237
+ origin of the Work and reproducing the content of the NOTICE file.
3238
+
3239
+ 7. Disclaimer of Warranty. Unless required by applicable law or
3240
+ agreed to in writing, Licensor provides the Work (and each
3241
+ Contributor provides its Contributions) on an "AS IS" BASIS,
3242
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
3243
+ implied, including, without limitation, any warranties or conditions
3244
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
3245
+ PARTICULAR PURPOSE. You are solely responsible for determining the
3246
+ appropriateness of using or redistributing the Work and assume any
3247
+ risks associated with Your exercise of permissions under this License.
3248
+
3249
+ 8. Limitation of Liability. In no event and under no legal theory,
3250
+ whether in tort (including negligence), contract, or otherwise,
3251
+ unless required by applicable law (such as deliberate and grossly
3252
+ negligent acts) or agreed to in writing, shall any Contributor be
3253
+ liable to You for damages, including any direct, indirect, special,
3254
+ incidental, or consequential damages of any character arising as a
3255
+ result of this License or out of the use or inability to use the
3256
+ Work (including but not limited to damages for loss of goodwill,
3257
+ work stoppage, computer failure or malfunction, or any and all
3258
+ other commercial damages or losses), even if such Contributor
3259
+ has been advised of the possibility of such damages.
3260
+
3261
+ 9. Accepting Warranty or Additional Liability. While redistributing
3262
+ the Work or Derivative Works thereof, You may choose to offer,
3263
+ and charge a fee for, acceptance of support, warranty, indemnity,
3264
+ or other liability obligations and/or rights consistent with this
3265
+ License. However, in accepting such obligations, You may act only
3266
+ on Your own behalf and on Your sole responsibility, not on behalf
3267
+ of any other Contributor, and only if You agree to indemnify,
3268
+ defend, and hold each Contributor harmless for any liability
3269
+ incurred by, or claims asserted against, such Contributor by reason
3270
+ of your accepting any such warranty or additional liability.
3271
+
3272
+ END OF TERMS AND CONDITIONS
3273
+
3274
+ APPENDIX: How to apply the Apache License to your work.
3275
+
3276
+ To apply the Apache License to your work, attach the following
3277
+ boilerplate notice, with the fields enclosed by brackets "[]"
3278
+ replaced with your own identifying information. (Don't include
3279
+ the brackets!) The text should be enclosed in the appropriate
3280
+ comment syntax for the file format. We also recommend that a
3281
+ file or class name and description of purpose be included on the
3282
+ same "printed page" as the copyright notice for easier
3283
+ identification within third-party archives.
3284
+
3285
+ Copyright [yyyy] [name of copyright owner]
3286
+
3287
+ Licensed under the Apache License, Version 2.0 (the "License");
3288
+ you may not use this file except in compliance with the License.
3289
+ You may obtain a copy of the License at
3290
+
3291
+ http://www.apache.org/licenses/LICENSE-2.0
3292
+
3293
+ Unless required by applicable law or agreed to in writing, software
3294
+ distributed under the License is distributed on an "AS IS" BASIS,
3295
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3296
+ See the License for the specific language governing permissions and
3297
+ limitations under the License.
3298
+
3299
+
3300
+ ---- LLVM Exceptions to the Apache 2.0 License ----
3301
+
3302
+ As an exception, if, as a result of your compiling your source code, portions
3303
+ of this Software are embedded into an Object form of such source code, you
3304
+ may redistribute such embedded portions in such Object form without complying
3305
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
3306
+
3307
+ In addition, if you combine or link compiled forms of this Software with
3308
+ software that is licensed under the GPLv2 ("Combined Software") and if a
3309
+ court of competent jurisdiction determines that the patent provision (Section
3310
+ 3), the indemnity provision (Section 9) or other Section of the License
3311
+ conflicts with the conditions of the GPLv2, you may retroactively and
3312
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
3313
+ the License, but only in their entirety and only with respect to the Combined
3314
+ Software.
3315
+
3316
+ ==============================================================================
3317
+ Software from third parties included in the LLVM Project:
3318
+ ==============================================================================
3319
+ The LLVM Project contains third party software which is under different license
3320
+ terms. All such code will be identified clearly using at least one of two
3321
+ mechanisms:
3322
+ 1) It will be in a separate directory tree with its own `LICENSE.txt` or
3323
+ `LICENSE` file at the top containing the specific license and restrictions
3324
+ which apply to that software, or
3325
+ 2) It will contain specific license and restriction terms at the top of every
3326
+ file.
3327
+
3328
+ ==============================================================================
3329
+ Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
3330
+ ==============================================================================
3331
+
3332
+ The compiler_rt library is dual licensed under both the University of Illinois
3333
+ "BSD-Like" license and the MIT license. As a user of this code you may choose
3334
+ to use it under either license. As a contributor, you agree to allow your code
3335
+ to be used under both.
3336
+
3337
+ Full text of the relevant licenses is included below.
3338
+
3339
+ ==============================================================================
3340
+
3341
+ University of Illinois/NCSA
3342
+ Open Source License
3343
+
3344
+ Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT
3345
+
3346
+ All rights reserved.
3347
+
3348
+ Developed by:
3349
+
3350
+ LLVM Team
3351
+
3352
+ University of Illinois at Urbana-Champaign
3353
+
3354
+ http://llvm.org
3355
+
3356
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
3357
+ this software and associated documentation files (the "Software"), to deal with
3358
+ the Software without restriction, including without limitation the rights to
3359
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
3360
+ of the Software, and to permit persons to whom the Software is furnished to do
3361
+ so, subject to the following conditions:
3362
+
3363
+ * Redistributions of source code must retain the above copyright notice,
3364
+ this list of conditions and the following disclaimers.
3365
+
3366
+ * Redistributions in binary form must reproduce the above copyright notice,
3367
+ this list of conditions and the following disclaimers in the
3368
+ documentation and/or other materials provided with the distribution.
3369
+
3370
+ * Neither the names of the LLVM Team, University of Illinois at
3371
+ Urbana-Champaign, nor the names of its contributors may be used to
3372
+ endorse or promote products derived from this Software without specific
3373
+ prior written permission.
3374
+
3375
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3376
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
3377
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3378
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3379
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3380
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
3381
+ SOFTWARE.
3382
+
3383
+ ==============================================================================
3384
+
3385
+ Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT
3386
+
3387
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3388
+ of this software and associated documentation files (the "Software"), to deal
3389
+ in the Software without restriction, including without limitation the rights
3390
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3391
+ copies of the Software, and to permit persons to whom the Software is
3392
+ furnished to do so, subject to the following conditions:
3393
+
3394
+ The above copyright notice and this permission notice shall be included in
3395
+ all copies or substantial portions of the Software.
3396
+
3397
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3398
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3399
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3400
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3401
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3402
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3403
+ THE SOFTWARE.
3404
+ ```