@zorilla/puppeteer-extra-plugin-stealth 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 (270) hide show
  1. package/.claude/settings.local.json +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +324 -0
  4. package/dist/evasions/README.md +13 -0
  5. package/dist/evasions/_template/README.md +18 -0
  6. package/dist/evasions/_template/index.d.ts +13 -0
  7. package/dist/evasions/_template/index.d.ts.map +1 -0
  8. package/dist/evasions/_template/index.js +26 -0
  9. package/dist/evasions/_template/index.js.map +1 -0
  10. package/dist/evasions/_template/package.json +5 -0
  11. package/dist/evasions/_utils/README.md +287 -0
  12. package/dist/evasions/_utils/index.d.ts +238 -0
  13. package/dist/evasions/_utils/index.d.ts.map +1 -0
  14. package/dist/evasions/_utils/index.js +588 -0
  15. package/dist/evasions/_utils/index.js.map +1 -0
  16. package/dist/evasions/_utils/withUtils.d.ts +12 -0
  17. package/dist/evasions/_utils/withUtils.d.ts.map +1 -0
  18. package/dist/evasions/_utils/withUtils.js +47 -0
  19. package/dist/evasions/_utils/withUtils.js.map +1 -0
  20. package/dist/evasions/chrome.app/README.md +16 -0
  21. package/dist/evasions/chrome.app/index.d.ts +11 -0
  22. package/dist/evasions/chrome.app/index.d.ts.map +1 -0
  23. package/dist/evasions/chrome.app/index.js +97 -0
  24. package/dist/evasions/chrome.app/index.js.map +1 -0
  25. package/dist/evasions/chrome.app/package.json +5 -0
  26. package/dist/evasions/chrome.csi/README.md +29 -0
  27. package/dist/evasions/chrome.csi/index.d.ts +25 -0
  28. package/dist/evasions/chrome.csi/index.d.ts.map +1 -0
  29. package/dist/evasions/chrome.csi/index.js +69 -0
  30. package/dist/evasions/chrome.csi/index.js.map +1 -0
  31. package/dist/evasions/chrome.csi/package.json +5 -0
  32. package/dist/evasions/chrome.loadTimes/README.md +27 -0
  33. package/dist/evasions/chrome.loadTimes/index.d.ts +23 -0
  34. package/dist/evasions/chrome.loadTimes/index.d.ts.map +1 -0
  35. package/dist/evasions/chrome.loadTimes/index.js +163 -0
  36. package/dist/evasions/chrome.loadTimes/index.js.map +1 -0
  37. package/dist/evasions/chrome.loadTimes/package.json +5 -0
  38. package/dist/evasions/chrome.runtime/README.md +32 -0
  39. package/dist/evasions/chrome.runtime/index.d.ts +14 -0
  40. package/dist/evasions/chrome.runtime/index.d.ts.map +1 -0
  41. package/dist/evasions/chrome.runtime/index.js +252 -0
  42. package/dist/evasions/chrome.runtime/index.js.map +1 -0
  43. package/dist/evasions/chrome.runtime/package.json +5 -0
  44. package/dist/evasions/chrome.runtime/staticData.json +41 -0
  45. package/dist/evasions/defaultArgs/README.md +17 -0
  46. package/dist/evasions/defaultArgs/index.d.ts +2 -0
  47. package/dist/evasions/defaultArgs/index.d.ts.map +1 -0
  48. package/dist/evasions/defaultArgs/index.js +43 -0
  49. package/dist/evasions/defaultArgs/index.js.map +1 -0
  50. package/dist/evasions/defaultArgs/package.json +5 -0
  51. package/dist/evasions/iframe.contentWindow/README.md +19 -0
  52. package/dist/evasions/iframe.contentWindow/index.d.ts +15 -0
  53. package/dist/evasions/iframe.contentWindow/index.d.ts.map +1 -0
  54. package/dist/evasions/iframe.contentWindow/index.js +132 -0
  55. package/dist/evasions/iframe.contentWindow/index.js.map +1 -0
  56. package/dist/evasions/iframe.contentWindow/package.json +5 -0
  57. package/dist/evasions/media.codecs/README.md +38 -0
  58. package/dist/evasions/media.codecs/index.d.ts +12 -0
  59. package/dist/evasions/media.codecs/index.d.ts.map +1 -0
  60. package/dist/evasions/media.codecs/index.js +89 -0
  61. package/dist/evasions/media.codecs/index.js.map +1 -0
  62. package/dist/evasions/media.codecs/package.json +5 -0
  63. package/dist/evasions/navigator.hardwareConcurrency/README.md +19 -0
  64. package/dist/evasions/navigator.hardwareConcurrency/index.d.ts +2 -0
  65. package/dist/evasions/navigator.hardwareConcurrency/index.d.ts.map +1 -0
  66. package/dist/evasions/navigator.hardwareConcurrency/index.js +45 -0
  67. package/dist/evasions/navigator.hardwareConcurrency/index.js.map +1 -0
  68. package/dist/evasions/navigator.hardwareConcurrency/package.json +5 -0
  69. package/dist/evasions/navigator.languages/README.md +17 -0
  70. package/dist/evasions/navigator.languages/index.d.ts +2 -0
  71. package/dist/evasions/navigator.languages/index.d.ts.map +1 -0
  72. package/dist/evasions/navigator.languages/index.js +44 -0
  73. package/dist/evasions/navigator.languages/index.js.map +1 -0
  74. package/dist/evasions/navigator.languages/package.json +5 -0
  75. package/dist/evasions/navigator.permissions/README.md +16 -0
  76. package/dist/evasions/navigator.permissions/index.d.ts +2 -0
  77. package/dist/evasions/navigator.permissions/index.d.ts.map +1 -0
  78. package/dist/evasions/navigator.permissions/index.js +66 -0
  79. package/dist/evasions/navigator.permissions/index.js.map +1 -0
  80. package/dist/evasions/navigator.permissions/package.json +5 -0
  81. package/dist/evasions/navigator.plugins/README.md +24 -0
  82. package/dist/evasions/navigator.plugins/data.json +48 -0
  83. package/dist/evasions/navigator.plugins/functionMocks.d.ts +9 -0
  84. package/dist/evasions/navigator.plugins/functionMocks.d.ts.map +1 -0
  85. package/dist/evasions/navigator.plugins/functionMocks.js +47 -0
  86. package/dist/evasions/navigator.plugins/functionMocks.js.map +1 -0
  87. package/dist/evasions/navigator.plugins/index.d.ts +19 -0
  88. package/dist/evasions/navigator.plugins/index.d.ts.map +1 -0
  89. package/dist/evasions/navigator.plugins/index.js +98 -0
  90. package/dist/evasions/navigator.plugins/index.js.map +1 -0
  91. package/dist/evasions/navigator.plugins/magicArray.d.ts +2 -0
  92. package/dist/evasions/navigator.plugins/magicArray.d.ts.map +1 -0
  93. package/dist/evasions/navigator.plugins/magicArray.js +145 -0
  94. package/dist/evasions/navigator.plugins/magicArray.js.map +1 -0
  95. package/dist/evasions/navigator.plugins/mimeTypes.d.ts +2 -0
  96. package/dist/evasions/navigator.plugins/mimeTypes.d.ts.map +1 -0
  97. package/dist/evasions/navigator.plugins/mimeTypes.js +18 -0
  98. package/dist/evasions/navigator.plugins/mimeTypes.js.map +1 -0
  99. package/dist/evasions/navigator.plugins/package.json +5 -0
  100. package/dist/evasions/navigator.plugins/plugins.d.ts +2 -0
  101. package/dist/evasions/navigator.plugins/plugins.d.ts.map +1 -0
  102. package/dist/evasions/navigator.plugins/plugins.js +18 -0
  103. package/dist/evasions/navigator.plugins/plugins.js.map +1 -0
  104. package/dist/evasions/navigator.vendor/README.md +36 -0
  105. package/dist/evasions/navigator.vendor/index.d.ts +2 -0
  106. package/dist/evasions/navigator.vendor/index.d.ts.map +1 -0
  107. package/dist/evasions/navigator.vendor/index.js +64 -0
  108. package/dist/evasions/navigator.vendor/index.js.map +1 -0
  109. package/dist/evasions/navigator.vendor/package.json +5 -0
  110. package/dist/evasions/navigator.webdriver/README.md +17 -0
  111. package/dist/evasions/navigator.webdriver/index.d.ts +13 -0
  112. package/dist/evasions/navigator.webdriver/index.d.ts.map +1 -0
  113. package/dist/evasions/navigator.webdriver/index.js +48 -0
  114. package/dist/evasions/navigator.webdriver/index.js.map +1 -0
  115. package/dist/evasions/navigator.webdriver/package.json +5 -0
  116. package/dist/evasions/sourceurl/README.md +17 -0
  117. package/dist/evasions/sourceurl/_fixtures/test.html +35 -0
  118. package/dist/evasions/sourceurl/index.d.ts +12 -0
  119. package/dist/evasions/sourceurl/index.d.ts.map +1 -0
  120. package/dist/evasions/sourceurl/index.js +82 -0
  121. package/dist/evasions/sourceurl/index.js.map +1 -0
  122. package/dist/evasions/sourceurl/package.json +5 -0
  123. package/dist/evasions/user-agent-override/README.md +53 -0
  124. package/dist/evasions/user-agent-override/index.d.ts +2 -0
  125. package/dist/evasions/user-agent-override/index.d.ts.map +1 -0
  126. package/dist/evasions/user-agent-override/index.js +206 -0
  127. package/dist/evasions/user-agent-override/index.js.map +1 -0
  128. package/dist/evasions/user-agent-override/package.json +5 -0
  129. package/dist/evasions/webgl.vendor/README.md +20 -0
  130. package/dist/evasions/webgl.vendor/index.d.ts +17 -0
  131. package/dist/evasions/webgl.vendor/index.d.ts.map +1 -0
  132. package/dist/evasions/webgl.vendor/index.js +57 -0
  133. package/dist/evasions/webgl.vendor/index.js.map +1 -0
  134. package/dist/evasions/webgl.vendor/package.json +5 -0
  135. package/dist/evasions/window.outerdimensions/README.md +17 -0
  136. package/dist/evasions/window.outerdimensions/index.d.ts +13 -0
  137. package/dist/evasions/window.outerdimensions/index.d.ts.map +1 -0
  138. package/dist/evasions/window.outerdimensions/index.js +42 -0
  139. package/dist/evasions/window.outerdimensions/index.js.map +1 -0
  140. package/dist/evasions/window.outerdimensions/package.json +5 -0
  141. package/dist/index.d.ts +130 -0
  142. package/dist/index.d.ts.map +1 -0
  143. package/dist/index.js +164 -0
  144. package/dist/index.js.map +1 -0
  145. package/examples/detect-headless.js +95 -0
  146. package/examples/test1.js +20 -0
  147. package/examples/test2.js +25 -0
  148. package/package.json +70 -0
  149. package/src/evasions/README.md +13 -0
  150. package/src/evasions/_template/README.md +18 -0
  151. package/src/evasions/_template/index.js +26 -0
  152. package/src/evasions/_template/package.json +5 -0
  153. package/src/evasions/_utils/README.md +287 -0
  154. package/src/evasions/_utils/index.js +588 -0
  155. package/src/evasions/_utils/withUtils.js +47 -0
  156. package/src/evasions/chrome.app/README.md +16 -0
  157. package/src/evasions/chrome.app/index.js +97 -0
  158. package/src/evasions/chrome.app/package.json +5 -0
  159. package/src/evasions/chrome.csi/README.md +29 -0
  160. package/src/evasions/chrome.csi/index.js +69 -0
  161. package/src/evasions/chrome.csi/package.json +5 -0
  162. package/src/evasions/chrome.loadTimes/README.md +27 -0
  163. package/src/evasions/chrome.loadTimes/index.js +163 -0
  164. package/src/evasions/chrome.loadTimes/package.json +5 -0
  165. package/src/evasions/chrome.runtime/README.md +32 -0
  166. package/src/evasions/chrome.runtime/index.js +252 -0
  167. package/src/evasions/chrome.runtime/package.json +5 -0
  168. package/src/evasions/chrome.runtime/staticData.json +41 -0
  169. package/src/evasions/defaultArgs/README.md +17 -0
  170. package/src/evasions/defaultArgs/index.js +43 -0
  171. package/src/evasions/defaultArgs/package.json +5 -0
  172. package/src/evasions/iframe.contentWindow/README.md +19 -0
  173. package/src/evasions/iframe.contentWindow/index.js +132 -0
  174. package/src/evasions/iframe.contentWindow/package.json +5 -0
  175. package/src/evasions/media.codecs/README.md +38 -0
  176. package/src/evasions/media.codecs/index.js +89 -0
  177. package/src/evasions/media.codecs/package.json +5 -0
  178. package/src/evasions/navigator.hardwareConcurrency/README.md +19 -0
  179. package/src/evasions/navigator.hardwareConcurrency/index.js +45 -0
  180. package/src/evasions/navigator.hardwareConcurrency/package.json +5 -0
  181. package/src/evasions/navigator.languages/README.md +17 -0
  182. package/src/evasions/navigator.languages/index.js +44 -0
  183. package/src/evasions/navigator.languages/package.json +5 -0
  184. package/src/evasions/navigator.permissions/README.md +16 -0
  185. package/src/evasions/navigator.permissions/index.js +66 -0
  186. package/src/evasions/navigator.permissions/package.json +5 -0
  187. package/src/evasions/navigator.plugins/README.md +24 -0
  188. package/src/evasions/navigator.plugins/data.json +48 -0
  189. package/src/evasions/navigator.plugins/functionMocks.js +47 -0
  190. package/src/evasions/navigator.plugins/index.js +98 -0
  191. package/src/evasions/navigator.plugins/magicArray.js +145 -0
  192. package/src/evasions/navigator.plugins/mimeTypes.js +18 -0
  193. package/src/evasions/navigator.plugins/package.json +5 -0
  194. package/src/evasions/navigator.plugins/plugins.js +18 -0
  195. package/src/evasions/navigator.vendor/README.md +36 -0
  196. package/src/evasions/navigator.vendor/index.js +64 -0
  197. package/src/evasions/navigator.vendor/package.json +5 -0
  198. package/src/evasions/navigator.webdriver/README.md +17 -0
  199. package/src/evasions/navigator.webdriver/index.js +48 -0
  200. package/src/evasions/navigator.webdriver/package.json +5 -0
  201. package/src/evasions/sourceurl/README.md +17 -0
  202. package/src/evasions/sourceurl/_fixtures/test.html +35 -0
  203. package/src/evasions/sourceurl/index.js +82 -0
  204. package/src/evasions/sourceurl/package.json +5 -0
  205. package/src/evasions/user-agent-override/README.md +53 -0
  206. package/src/evasions/user-agent-override/index.js +206 -0
  207. package/src/evasions/user-agent-override/package.json +5 -0
  208. package/src/evasions/webgl.vendor/README.md +20 -0
  209. package/src/evasions/webgl.vendor/index.js +57 -0
  210. package/src/evasions/webgl.vendor/package.json +5 -0
  211. package/src/evasions/window.outerdimensions/README.md +17 -0
  212. package/src/evasions/window.outerdimensions/index.js +42 -0
  213. package/src/evasions/window.outerdimensions/package.json +5 -0
  214. package/src/index.d.ts +111 -0
  215. package/src/index.ts +188 -0
  216. package/test/cat-and-mouse.test.ts +170 -0
  217. package/test/evasions/_utils/index.test.ts +710 -0
  218. package/test/evasions/chrome.app/index.test.ts +69 -0
  219. package/test/evasions/chrome.csi/index.test.ts +46 -0
  220. package/test/evasions/chrome.loadTimes/index.test.ts +61 -0
  221. package/test/evasions/chrome.runtime/index.test.ts +282 -0
  222. package/test/evasions/defaultArgs/index.test.ts +36 -0
  223. package/test/evasions/iframe.contentWindow/index.test.js +450 -0
  224. package/test/evasions/media.codecs/index.test.js +103 -0
  225. package/test/evasions/navigator.hardwareConcurrency/index.test.js +58 -0
  226. package/test/evasions/navigator.languages/index.test.js +101 -0
  227. package/test/evasions/navigator.permissions/index.test.js +104 -0
  228. package/test/evasions/navigator.plugins/index.test.js +55 -0
  229. package/test/evasions/navigator.plugins/mimeTypes.test.js +220 -0
  230. package/test/evasions/navigator.plugins/plugins.test.js +181 -0
  231. package/test/evasions/navigator.vendor/index.test.js +68 -0
  232. package/test/evasions/navigator.webdriver/index.test.js +47 -0
  233. package/test/evasions/sourceurl/_fixtures/test.html +35 -0
  234. package/test/evasions/sourceurl/index.test.js +62 -0
  235. package/test/evasions/user-agent-override/index.test.js +338 -0
  236. package/test/evasions/webgl.vendor/index.test.js +220 -0
  237. package/test/fixtures/dummy-with-service-worker.html +22 -0
  238. package/test/fixtures/dummy.html +11 -0
  239. package/test/fixtures/sw.js +1 -0
  240. package/test/fpscanner.test.ts +54 -0
  241. package/test/index.test.ts +51 -0
  242. package/test/service-worker.test.ts +112 -0
  243. package/test/stealth/_results/_thumbs/headful-chrome-stealth.js.png +0 -0
  244. package/test/stealth/_results/_thumbs/headful-chrome-vanilla.js.png +0 -0
  245. package/test/stealth/_results/_thumbs/headful-chromium-stealth.js.png +0 -0
  246. package/test/stealth/_results/_thumbs/headful-chromium-vanilla.js.png +0 -0
  247. package/test/stealth/_results/_thumbs/headless-chrome-stealth.js.png +0 -0
  248. package/test/stealth/_results/_thumbs/headless-chrome-vanilla.js.png +0 -0
  249. package/test/stealth/_results/_thumbs/headless-chromium-stealth.js.png +0 -0
  250. package/test/stealth/_results/_thumbs/headless-chromium-vanilla.js.png +0 -0
  251. package/test/stealth/_results/headful-chrome-stealth.js.png +0 -0
  252. package/test/stealth/_results/headful-chrome-vanilla.js.png +0 -0
  253. package/test/stealth/_results/headful-chromium-stealth.js.png +0 -0
  254. package/test/stealth/_results/headful-chromium-vanilla.js.png +0 -0
  255. package/test/stealth/_results/headless-chrome-stealth.js.png +0 -0
  256. package/test/stealth/_results/headless-chrome-vanilla.js.png +0 -0
  257. package/test/stealth/_results/headless-chromium-stealth.js.png +0 -0
  258. package/test/stealth/_results/headless-chromium-vanilla.js.png +0 -0
  259. package/test/stealth/headful-chrome-stealth.js +25 -0
  260. package/test/stealth/headful-chrome-vanilla.js +23 -0
  261. package/test/stealth/headful-chromium-stealth.js +22 -0
  262. package/test/stealth/headful-chromium-vanilla.js +20 -0
  263. package/test/stealth/headless-chrome-stealth.js +25 -0
  264. package/test/stealth/headless-chrome-vanilla.js +23 -0
  265. package/test/stealth/headless-chromium-stealth.js +22 -0
  266. package/test/stealth/headless-chromium-vanilla.js +20 -0
  267. package/test/util.js +82 -0
  268. package/tsconfig.json +10 -0
  269. package/tsconfig.tsbuildinfo +1 -0
  270. package/vitest.config.ts +28 -0
@@ -0,0 +1,287 @@
1
+ ## API
2
+
3
+
4
+ #### Table of Contents
5
+
6
+ - [utils()](#utils)
7
+ - [.stripProxyFromErrors(handler)](#stripproxyfromerrorshandler)
8
+ - [.stripErrorWithAnchor(err, anchor)](#striperrorwithanchorerr-anchor)
9
+ - [.replaceProperty(obj, propName, descriptorOverrides)](#replacepropertyobj-propname-descriptoroverrides)
10
+ - [.preloadCache()](#preloadcache)
11
+ - [.makeNativeString(name?)](#makenativestringname)
12
+ - [.patchToString(obj, str)](#patchtostringobj-str)
13
+ - [.patchToStringNested(obj)](#patchtostringnestedobj)
14
+ - [.redirectToString(proxyObj, originalObj)](#redirecttostringproxyobj-originalobj)
15
+ - [.replaceWithProxy(obj, propName, handler)](#replacewithproxyobj-propname-handler)
16
+ - [.mockWithProxy(obj, propName, pseudoTarget, handler)](#mockwithproxyobj-propname-pseudotarget-handler)
17
+ - [.createProxy(pseudoTarget, handler)](#createproxypseudotarget-handler)
18
+ - [.splitObjPath(objPath)](#splitobjpathobjpath)
19
+ - [.replaceObjPathWithProxy(objPath, handler)](#replaceobjpathwithproxyobjpath-handler)
20
+ - [.execRecursively(obj, typeFilter, fn)](#execrecursivelyobj-typefilter-fn)
21
+ - [.stringifyFns(fnObj)](#stringifyfnsfnobj)
22
+ - [.materializeFns(fnStrObj)](#materializefnsfnstrobj)
23
+
24
+ ### [utils()](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L12-L12)
25
+
26
+ A set of shared utility functions specifically for the purpose of modifying native browser APIs without leaving traces.
27
+
28
+ Meant to be passed down in puppeteer and used in the context of the page (everything in here runs in NodeJS as well as a browser).
29
+
30
+ Note: If for whatever reason you need to use this outside of `puppeteer-extra`:
31
+ Just remove the `module.exports` statement at the very bottom, the rest can be copy pasted into any browser context.
32
+
33
+ Alternatively take a look at the `extract-stealth-evasions` package to create a finished bundle which includes these utilities.
34
+
35
+ ---
36
+
37
+ #### .[stripProxyFromErrors(handler)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L21-L82)
38
+
39
+ - `handler` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy handler to wrap (optional, default `{}`)
40
+
41
+ Wraps a JS Proxy Handler and strips it's presence from error stacks, in case the traps throw.
42
+
43
+ The presence of a JS Proxy can be revealed as it shows up in error stack traces.
44
+
45
+ ---
46
+
47
+ #### .[stripErrorWithAnchor(err, anchor)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L90-L101)
48
+
49
+ - `err` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The error to sanitize
50
+ - `anchor` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The string the anchor line starts with
51
+
52
+ Strip error lines from stack traces until (and including) a known line the stack.
53
+
54
+ ---
55
+
56
+ #### .[replaceProperty(obj, propName, descriptorOverrides)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L120-L127)
57
+
58
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object which has the property to replace
59
+ - `propName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The property name to replace
60
+ - `descriptorOverrides` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** e.g. { value: "alice" } (optional, default `{}`)
61
+
62
+ Replace the property of an object in a stealthy way.
63
+
64
+ Note: You also want to work on the prototype of an object most often,
65
+ as you'd otherwise leave traces (e.g. showing up in Object.getOwnPropertyNames(obj)).
66
+
67
+ Example:
68
+
69
+ ```javascript
70
+ replaceProperty(WebGLRenderingContext.prototype, 'getParameter', {
71
+ value: 'alice'
72
+ })
73
+ // or
74
+ replaceProperty(Object.getPrototypeOf(navigator), 'languages', {
75
+ get: () => ['en-US', 'en']
76
+ })
77
+ ```
78
+
79
+ - **See: <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty>**
80
+
81
+ ---
82
+
83
+ #### .[preloadCache()](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L137-L150)
84
+
85
+ Preload a cache of function copies and data.
86
+
87
+ For a determined enough observer it would be possible to overwrite and sniff usage of functions
88
+ we use in our internal Proxies, to combat that we use a cached copy of those functions.
89
+
90
+ This is evaluated once per execution context (e.g. window)
91
+
92
+ ---
93
+
94
+ #### .[makeNativeString(name?)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L169-L173)
95
+
96
+ - `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Optional function name (optional, default `''`)
97
+
98
+ Utility function to generate a cross-browser `toString` result representing native code.
99
+
100
+ There's small differences: Chromium uses a single line, whereas FF & Webkit uses multiline strings.
101
+ To future-proof this we use an existing native toString result as the basis.
102
+
103
+ The only advantage we have over the other team is that our JS runs first, hence we cache the result
104
+ of the native toString result once, so they cannot spoof it afterwards and reveal that we're using it.
105
+
106
+ Note: Whenever we add a `Function.prototype.toString` proxy we should preload the cache before,
107
+ by executing `utils.preloadCache()` before the proxy is applied (so we don't cause recursive lookups).
108
+
109
+ Example:
110
+
111
+ ```javascript
112
+ makeNativeString('foobar') // => `function foobar() { [native code] }`
113
+ ```
114
+
115
+ ---
116
+
117
+ #### .[patchToString(obj, str)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L189-L218)
118
+
119
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object for which to modify the `toString()` representation
120
+ - `str` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Optional string used as a return value (optional, default `''`)
121
+
122
+ Helper function to modify the `toString()` result of the provided object.
123
+
124
+ Note: Use `utils.redirectToString` instead when possible.
125
+
126
+ There's a quirk in JS Proxies that will cause the `toString()` result to differ from the vanilla Object.
127
+ If no string is provided we will generate a `[native code]` thing based on the name of the property object.
128
+
129
+ Example:
130
+
131
+ ```javascript
132
+ patchToString(
133
+ WebGLRenderingContext.prototype.getParameter,
134
+ 'function getParameter() { [native code] }'
135
+ )
136
+ ```
137
+
138
+ ---
139
+
140
+ #### .[patchToStringNested(obj)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L225-L227)
141
+
142
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
143
+
144
+ Make all nested functions of an object native.
145
+
146
+ ---
147
+
148
+ #### .[redirectToString(proxyObj, originalObj)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L235-L272)
149
+
150
+ - `proxyObj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object that toString will be called on
151
+ - `originalObj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object which toString result we wan to return
152
+
153
+ Redirect toString requests from one object to another.
154
+
155
+ ---
156
+
157
+ #### .[replaceWithProxy(obj, propName, handler)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L287-L296)
158
+
159
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object which has the property to replace
160
+ - `propName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The name of the property to replace
161
+ - `handler` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy handler to use
162
+
163
+ All-in-one method to replace a property with a JS Proxy using the provided Proxy handler with traps.
164
+
165
+ Will stealthify these aspects (strip error stack traces, redirect toString, etc).
166
+ Note: This is meant to modify native Browser APIs and works best with prototype objects.
167
+
168
+ Example:
169
+
170
+ ```javascript
171
+ replaceWithProxy(WebGLRenderingContext.prototype, 'getParameter', proxyHandler)
172
+ ```
173
+
174
+ ---
175
+
176
+ #### .[mockWithProxy(obj, propName, pseudoTarget, handler)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L311-L319)
177
+
178
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The object which has the property to replace
179
+ - `propName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The name of the property to replace or create
180
+ - `pseudoTarget` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy target to use as a basis
181
+ - `handler` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy handler to use
182
+
183
+ All-in-one method to mock a non-existing property with a JS Proxy using the provided Proxy handler with traps.
184
+
185
+ Will stealthify these aspects (strip error stack traces, redirect toString, etc).
186
+
187
+ Example:
188
+
189
+ ```javascript
190
+ mockWithProxy(
191
+ chrome.runtime,
192
+ 'sendMessage',
193
+ function sendMessage() {},
194
+ proxyHandler
195
+ )
196
+ ```
197
+
198
+ ---
199
+
200
+ #### .[createProxy(pseudoTarget, handler)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L334-L340)
201
+
202
+ - `pseudoTarget` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy target to use as a basis
203
+ - `handler` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy handler to use
204
+
205
+ All-in-one method to create a new JS Proxy with stealth tweaks.
206
+
207
+ This is meant to be used whenever we need a JS Proxy but don't want to replace or mock an existing known property.
208
+
209
+ Will stealthify certain aspects of the Proxy (strip error stack traces, redirect toString, etc).
210
+
211
+ Example:
212
+
213
+ ```javascript
214
+ createProxy(navigator.mimeTypes.__proto__.namedItem, proxyHandler) // => Proxy
215
+ ```
216
+
217
+ ---
218
+
219
+ #### .[splitObjPath(objPath)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L351-L359)
220
+
221
+ - `objPath` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The full path to an object as dot notation string
222
+
223
+ Helper function to split a full path to an Object into the first part and property.
224
+
225
+ Example:
226
+
227
+ ```javascript
228
+ splitObjPath(`HTMLMediaElement.prototype.canPlayType`)
229
+ // => {objName: "HTMLMediaElement.prototype", propName: "canPlayType"}
230
+ ```
231
+
232
+ ---
233
+
234
+ #### .[replaceObjPathWithProxy(objPath, handler)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L372-L376)
235
+
236
+ - `objPath` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The full path to an object (dot notation string) to replace
237
+ - `handler` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JS Proxy handler to use
238
+
239
+ Convenience method to replace a property with a JS Proxy using the provided objPath.
240
+
241
+ Supports a full path (dot notation) to the object as string here, in case that makes it easier.
242
+
243
+ Example:
244
+
245
+ ```javascript
246
+ replaceObjPathWithProxy(
247
+ 'WebGLRenderingContext.prototype.getParameter',
248
+ proxyHandler
249
+ )
250
+ ```
251
+
252
+ ---
253
+
254
+ #### .[execRecursively(obj, typeFilter, fn)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L385-L402)
255
+
256
+ - `obj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
257
+ - `typeFilter` **[array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** e.g. `['function']` (optional, default `[]`)
258
+ - `fn` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** e.g. `utils.patchToString`
259
+
260
+ Traverse nested properties of an object recursively and apply the given function on a whitelist of value types.
261
+
262
+ ---
263
+
264
+ #### .[stringifyFns(fnObj)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L417-L431)
265
+
266
+ - `fnObj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** An object containing functions as properties (optional, default `{hello:()=>'world'}`)
267
+
268
+ Everything we run through e.g. `page.evaluate` runs in the browser context, not the NodeJS one.
269
+ That means we cannot just use reference variables and functions from outside code, we need to pass everything as a parameter.
270
+
271
+ Unfortunately the data we can pass is only allowed to be of primitive types, regular functions don't survive the built-in serialization process.
272
+ This utility function will take an object with functions and stringify them, so we can pass them down unharmed as strings.
273
+
274
+ We use this to pass down our utility functions as well as any other functions (to be able to split up code better).
275
+
276
+ - **See: utils.materializeFns**
277
+
278
+ ---
279
+
280
+ #### .[materializeFns(fnStrObj)](https://github.com/zorillajs/zorilla/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/_utils/index.js#L439-L451)
281
+
282
+ - `fnStrObj` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** An object containing stringified functions as properties (optional, default `{hello:"() => 'world'"}`)
283
+
284
+ Utility function to reverse the process of `utils.stringifyFns`.
285
+ Will materialize an object with stringified functions (supports classic and fat arrow functions).
286
+
287
+ ---
@@ -0,0 +1,238 @@
1
+ export default utils;
2
+ declare namespace utils {
3
+ function init(): void;
4
+ /**
5
+ * Wraps a JS Proxy Handler and strips it's presence from error stacks, in case the traps throw.
6
+ *
7
+ * The presence of a JS Proxy can be revealed as it shows up in error stack traces.
8
+ *
9
+ * @param {object} handler - The JS Proxy handler to wrap
10
+ */
11
+ function stripProxyFromErrors(handler?: object): {
12
+ setPrototypeOf: (target: any, proto: any) => boolean;
13
+ };
14
+ /**
15
+ * Strip error lines from stack traces until (and including) a known line the stack.
16
+ *
17
+ * @param {object} err - The error to sanitize
18
+ * @param {string} anchor - The string the anchor line starts with
19
+ */
20
+ function stripErrorWithAnchor(err: object, anchor: string): object;
21
+ /**
22
+ * Replace the property of an object in a stealthy way.
23
+ *
24
+ * Note: You also want to work on the prototype of an object most often,
25
+ * as you'd otherwise leave traces (e.g. showing up in Object.getOwnPropertyNames(obj)).
26
+ *
27
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
28
+ *
29
+ * @example
30
+ * replaceProperty(WebGLRenderingContext.prototype, 'getParameter', { value: "alice" })
31
+ * // or
32
+ * replaceProperty(Object.getPrototypeOf(navigator), 'languages', { get: () => ['en-US', 'en'] })
33
+ *
34
+ * @param {object} obj - The object which has the property to replace
35
+ * @param {string} propName - The property name to replace
36
+ * @param {object} descriptorOverrides - e.g. { value: "alice" }
37
+ */
38
+ function replaceProperty(obj: object, propName: string, descriptorOverrides?: object): object;
39
+ /**
40
+ * Preload a cache of function copies and data.
41
+ *
42
+ * For a determined enough observer it would be possible to overwrite and sniff usage of functions
43
+ * we use in our internal Proxies, to combat that we use a cached copy of those functions.
44
+ *
45
+ * Note: Whenever we add a `Function.prototype.toString` proxy we should preload the cache before,
46
+ * by executing `utils.preloadCache()` before the proxy is applied (so we don't cause recursive lookups).
47
+ *
48
+ * This is evaluated once per execution context (e.g. window)
49
+ */
50
+ function preloadCache(): void;
51
+ /**
52
+ * Utility function to generate a cross-browser `toString` result representing native code.
53
+ *
54
+ * There's small differences: Chromium uses a single line, whereas FF & Webkit uses multiline strings.
55
+ * To future-proof this we use an existing native toString result as the basis.
56
+ *
57
+ * The only advantage we have over the other team is that our JS runs first, hence we cache the result
58
+ * of the native toString result once, so they cannot spoof it afterwards and reveal that we're using it.
59
+ *
60
+ * @example
61
+ * makeNativeString('foobar') // => `function foobar() { [native code] }`
62
+ *
63
+ * @param {string} [name] - Optional function name
64
+ */
65
+ function makeNativeString(name?: string): any;
66
+ /**
67
+ * Helper function to modify the `toString()` result of the provided object.
68
+ *
69
+ * Note: Use `utils.redirectToString` instead when possible.
70
+ *
71
+ * There's a quirk in JS Proxies that will cause the `toString()` result to differ from the vanilla Object.
72
+ * If no string is provided we will generate a `[native code]` thing based on the name of the property object.
73
+ *
74
+ * @example
75
+ * patchToString(WebGLRenderingContext.prototype.getParameter, 'function getParameter() { [native code] }')
76
+ *
77
+ * @param {object} obj - The object for which to modify the `toString()` representation
78
+ * @param {string} str - Optional string used as a return value
79
+ */
80
+ function patchToString(obj: object, str?: string): void;
81
+ /**
82
+ * Make all nested functions of an object native.
83
+ *
84
+ * @param {object} obj
85
+ */
86
+ function patchToStringNested(obj?: object): object;
87
+ /**
88
+ * Redirect toString requests from one object to another.
89
+ *
90
+ * @param {object} proxyObj - The object that toString will be called on
91
+ * @param {object} originalObj - The object which toString result we wan to return
92
+ */
93
+ function redirectToString(proxyObj: object, originalObj: object): void;
94
+ /**
95
+ * All-in-one method to replace a property with a JS Proxy using the provided Proxy handler with traps.
96
+ *
97
+ * Will stealthify these aspects (strip error stack traces, redirect toString, etc).
98
+ * Note: This is meant to modify native Browser APIs and works best with prototype objects.
99
+ *
100
+ * @example
101
+ * replaceWithProxy(WebGLRenderingContext.prototype, 'getParameter', proxyHandler)
102
+ *
103
+ * @param {object} obj - The object which has the property to replace
104
+ * @param {string} propName - The name of the property to replace
105
+ * @param {object} handler - The JS Proxy handler to use
106
+ */
107
+ function replaceWithProxy(obj: object, propName: string, handler: object): boolean;
108
+ /**
109
+ * All-in-one method to replace a getter with a JS Proxy using the provided Proxy handler with traps.
110
+ *
111
+ * @example
112
+ * replaceGetterWithProxy(Object.getPrototypeOf(navigator), 'vendor', proxyHandler)
113
+ *
114
+ * @param {object} obj - The object which has the property to replace
115
+ * @param {string} propName - The name of the property to replace
116
+ * @param {object} handler - The JS Proxy handler to use
117
+ */
118
+ function replaceGetterWithProxy(obj: object, propName: string, handler: object): boolean;
119
+ /**
120
+ * All-in-one method to replace a getter and/or setter. Functions get and set
121
+ * of handler have one more argument that contains the native function.
122
+ *
123
+ * @example
124
+ * replaceGetterSetter(HTMLIFrameElement.prototype, 'contentWindow', handler)
125
+ *
126
+ * @param {object} obj - The object which has the property to replace
127
+ * @param {string} propName - The name of the property to replace
128
+ * @param {object} handlerGetterSetter - The handler with get and/or set
129
+ * functions
130
+ * @see https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty#description
131
+ */
132
+ function replaceGetterSetter(obj: object, propName: string, handlerGetterSetter: object): void;
133
+ /**
134
+ * All-in-one method to mock a non-existing property with a JS Proxy using the provided Proxy handler with traps.
135
+ *
136
+ * Will stealthify these aspects (strip error stack traces, redirect toString, etc).
137
+ *
138
+ * @example
139
+ * mockWithProxy(chrome.runtime, 'sendMessage', function sendMessage() {}, proxyHandler)
140
+ *
141
+ * @param {object} obj - The object which has the property to replace
142
+ * @param {string} propName - The name of the property to replace or create
143
+ * @param {object} pseudoTarget - The JS Proxy target to use as a basis
144
+ * @param {object} handler - The JS Proxy handler to use
145
+ */
146
+ function mockWithProxy(obj: object, propName: string, pseudoTarget: object, handler: object): boolean;
147
+ /**
148
+ * All-in-one method to create a new JS Proxy with stealth tweaks.
149
+ *
150
+ * This is meant to be used whenever we need a JS Proxy but don't want to replace or mock an existing known property.
151
+ *
152
+ * Will stealthify certain aspects of the Proxy (strip error stack traces, redirect toString, etc).
153
+ *
154
+ * @example
155
+ * createProxy(navigator.mimeTypes.__proto__.namedItem, proxyHandler) // => Proxy
156
+ *
157
+ * @param {object} pseudoTarget - The JS Proxy target to use as a basis
158
+ * @param {object} handler - The JS Proxy handler to use
159
+ */
160
+ function createProxy(pseudoTarget: object, handler: object): any;
161
+ /**
162
+ * Helper function to split a full path to an Object into the first part and property.
163
+ *
164
+ * @example
165
+ * splitObjPath(`HTMLMediaElement.prototype.canPlayType`)
166
+ * // => {objName: "HTMLMediaElement.prototype", propName: "canPlayType"}
167
+ *
168
+ * @param {string} objPath - The full path to an object as dot notation string
169
+ */
170
+ function splitObjPath(objPath: string): {
171
+ objName: string;
172
+ propName: string | undefined;
173
+ };
174
+ /**
175
+ * Convenience method to replace a property with a JS Proxy using the provided objPath.
176
+ *
177
+ * Supports a full path (dot notation) to the object as string here, in case that makes it easier.
178
+ *
179
+ * @example
180
+ * replaceObjPathWithProxy('WebGLRenderingContext.prototype.getParameter', proxyHandler)
181
+ *
182
+ * @param {string} objPath - The full path to an object (dot notation string) to replace
183
+ * @param {object} handler - The JS Proxy handler to use
184
+ */
185
+ function replaceObjPathWithProxy(objPath: string, handler: object): boolean;
186
+ /**
187
+ * Traverse nested properties of an object recursively and apply the given function on a whitelist of value types.
188
+ *
189
+ * @param {object} obj
190
+ * @param {array} typeFilter - e.g. `['function']`
191
+ * @param {Function} fn - e.g. `utils.patchToString`
192
+ */
193
+ function execRecursively(obj: object | undefined, typeFilter: array, fn: Function): object;
194
+ /**
195
+ * Everything we run through e.g. `page.evaluate` runs in the browser context, not the NodeJS one.
196
+ * That means we cannot just use reference variables and functions from outside code, we need to pass everything as a parameter.
197
+ *
198
+ * Unfortunately the data we can pass is only allowed to be of primitive types, regular functions don't survive the built-in serialization process.
199
+ * This utility function will take an object with functions and stringify them, so we can pass them down unharmed as strings.
200
+ *
201
+ * We use this to pass down our utility functions as well as any other functions (to be able to split up code better).
202
+ *
203
+ * @see utils.materializeFns
204
+ *
205
+ * @param {object} fnObj - An object containing functions as properties
206
+ */
207
+ function stringifyFns(fnObj?: object): {
208
+ [k: string]: any;
209
+ };
210
+ /**
211
+ * Utility function to reverse the process of `utils.stringifyFns`.
212
+ * Will materialize an object with stringified functions (supports classic and fat arrow functions).
213
+ *
214
+ * @param {object} fnStrObj - An object containing stringified functions as properties
215
+ */
216
+ function materializeFns(fnStrObj?: object): {
217
+ [k: string]: any;
218
+ };
219
+ function makeHandler(): {
220
+ getterValue: (value: any) => {
221
+ apply(_target: any, _ctx: any, _args: any, ...args: any[]): any;
222
+ };
223
+ };
224
+ /**
225
+ * Compare two arrays.
226
+ *
227
+ * @param {array} array1 - First array
228
+ * @param {array} array2 - Second array
229
+ */
230
+ function arrayEquals(array1: array, array2: array): boolean;
231
+ /**
232
+ * Cache the method return according to its arguments.
233
+ *
234
+ * @param {Function} fn - A function that will be cached
235
+ */
236
+ function memoize(fn: Function): (...args: any[]) => any;
237
+ }
238
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evasions/_utils/index.js"],"names":[],"mappings":";;IAaA,sBAEC;IAED;;;;;;OAMG;IACH,wCAFW,MAAM;;MAkFhB;IAED;;;;;OAKG;IACH,mCAHW,MAAM,UACN,MAAM,UAehB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,8BAJW,MAAM,YACN,MAAM,wBACN,MAAM,UAShB;IAED;;;;;;;;;;OAUG;IACH,8BAaC;IAED;;;;;;;;;;;;;OAaG;IACH,iCAFW,MAAM,OAIhB;IAED;;;;;;;;;;;;;OAaG;IACH,4BAHW,MAAM,QACN,MAAM,QAkChB;IAED;;;;OAIG;IACH,mCAFW,MAAM,UAIhB;IAED;;;;;OAKG;IACH,oCAHW,MAAM,eACN,MAAM,QA8ChB;IAED;;;;;;;;;;;;OAYG;IACH,+BAJW,MAAM,YACN,MAAM,WACN,MAAM,WAahB;IACD;;;;;;;;;OASG;IACH,qCAJW,MAAM,YACN,MAAM,WACN,MAAM,WAWhB;IAED;;;;;;;;;;;;OAYG;IACH,kCANW,MAAM,YACN,MAAM,uBACN,MAAM,QAyBhB;IAED;;;;;;;;;;;;OAYG;IACH,4BALW,MAAM,YACN,MAAM,gBACN,MAAM,WACN,MAAM,WAShB;IAED;;;;;;;;;;;;OAYG;IACH,mCAHW,MAAM,WACN,MAAM,OAOhB;IAED;;;;;;;;OAQG;IACH,+BAFW,MAAM;;;MAOf;IAEF;;;;;;;;;;OAUG;IACH,0CAHW,MAAM,WACN,MAAM,WAMhB;IAED;;;;;;OAMG;IACH,8BAJW,MAAM,0BACN,KAAK,wBAoBf;IAED;;;;;;;;;;;;OAYG;IACH,8BAFW,MAAM;;MAgBhB;IAED;;;;;OAKG;IACH,mCAFW,MAAM;;MAchB;IAGD;;;;MAUE;IAEF;;;;;OAKG;IACH,6BAHW,KAAK,UACL,KAAK,WAYf;IAED;;;;OAIG;IACH,iCAEmB,GAAG,WAAI,SAMzB"}