@builder.io/sdk-react-nextjs 0.7.1-3 → 0.7.1

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 (304) hide show
  1. package/lib/browser/USE_CLIENT_BUNDLE-059d1502.cjs +23 -0
  2. package/lib/{node/USE_CLIENT_BUNDLE-3263fb05.mjs → browser/USE_CLIENT_BUNDLE-b256b942.js} +142 -142
  3. package/lib/{edge/USE_SERVER_BUNDLE-046e1bfb.mjs → browser/USE_SERVER_BUNDLE-1aa7d195.js} +1 -1
  4. package/lib/browser/USE_SERVER_BUNDLE-d96aeaff.cjs +1 -0
  5. package/lib/browser/{bundle-97bfd273.mjs → bundle-0a946b39.js} +953 -928
  6. package/lib/browser/bundle-3a5994f4.cjs +76 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.d.cts +1 -0
  9. package/lib/browser/index.d.mts +1 -0
  10. package/lib/browser/index.mjs +3 -3
  11. package/lib/edge/USE_CLIENT_BUNDLE-210385b8.cjs +23 -0
  12. package/lib/{browser/USE_CLIENT_BUNDLE-a0cfd96e.mjs → edge/USE_CLIENT_BUNDLE-736c38f3.js} +142 -142
  13. package/lib/{node/USE_SERVER_BUNDLE-5a2dbc47.mjs → edge/USE_SERVER_BUNDLE-14516672.js} +1 -1
  14. package/lib/edge/USE_SERVER_BUNDLE-8c86a267.cjs +1 -0
  15. package/lib/edge/{bundle-4c987206.mjs → bundle-46eb4735.js} +1237 -1211
  16. package/lib/edge/{bundle-cb675da6.js → bundle-57428492.cjs} +30 -30
  17. package/lib/edge/index.cjs +1 -1
  18. package/lib/edge/index.d.cts +1 -0
  19. package/lib/edge/index.d.mts +1 -0
  20. package/lib/edge/index.mjs +3 -3
  21. package/lib/{edge/USE_CLIENT_BUNDLE-bcf2ccc8.mjs → node/USE_CLIENT_BUNDLE-2ae32ced.js} +142 -142
  22. package/lib/node/USE_CLIENT_BUNDLE-85a396bb.cjs +23 -0
  23. package/lib/{browser/USE_SERVER_BUNDLE-4b7a745a.mjs → node/USE_SERVER_BUNDLE-cd1f2a07.js} +1 -1
  24. package/lib/node/USE_SERVER_BUNDLE-e2ad5ce3.cjs +1 -0
  25. package/lib/node/bundle-3d88f873.cjs +116 -0
  26. package/lib/node/{bundle-e3f18037.mjs → bundle-d37c53b5.js} +794 -769
  27. package/lib/node/index.cjs +1 -1
  28. package/lib/node/index.d.cts +1 -0
  29. package/lib/node/index.d.mts +1 -0
  30. package/lib/node/index.mjs +3 -3
  31. package/package.json +8 -22
  32. package/types/{blocks → cjs/blocks}/button/button.d.ts +4 -3
  33. package/types/{blocks → cjs/blocks}/columns/columns.d.ts +2 -2
  34. package/types/{blocks → cjs/blocks}/custom-code/custom-code.d.ts +2 -2
  35. package/types/cjs/blocks/embed/embed.d.ts +6 -0
  36. package/types/{blocks → cjs/blocks}/fragment/fragment.d.ts +2 -2
  37. package/types/{blocks → cjs/blocks}/image/image.d.ts +2 -2
  38. package/types/{blocks → cjs/blocks}/img/img.d.ts +4 -3
  39. package/types/{blocks → cjs/blocks}/section/section.d.ts +4 -3
  40. package/types/{blocks → cjs/blocks}/symbol/symbol.d.ts +6 -4
  41. package/types/cjs/blocks/text/text.d.ts +6 -0
  42. package/types/{blocks → cjs/blocks}/video/video.d.ts +2 -2
  43. package/types/{components → cjs/components}/block/block.d.ts +2 -2
  44. package/types/{components → cjs/components}/block/components/block-styles.d.ts +2 -2
  45. package/types/{components → cjs/components}/block/components/block-wrapper.d.ts +6 -5
  46. package/types/cjs/components/block/components/component-ref/component-ref.d.ts +4 -0
  47. package/types/{components → cjs/components}/block/components/component-ref/component-ref.helpers.d.ts +1 -1
  48. package/types/{components → cjs/components}/block/components/interactive-element.d.ts +2 -2
  49. package/types/{components → cjs/components}/block/components/repeated-block.d.ts +2 -2
  50. package/types/{components → cjs/components}/blocks/blocks-wrapper.d.ts +2 -2
  51. package/types/{components → cjs/components}/blocks/blocks.d.ts +3 -3
  52. package/types/{components → cjs/components}/content/components/enable-editor.d.ts +2 -2
  53. package/types/{components → cjs/components}/content/components/styles.d.ts +2 -2
  54. package/types/cjs/components/content/content.d.ts +4 -0
  55. package/types/{components → cjs/components}/content-variants/content-variants.d.ts +2 -2
  56. package/types/cjs/components/inlined-script.d.ts +7 -0
  57. package/types/cjs/components/inlined-styles.d.ts +7 -0
  58. package/types/cjs/constants/sdk-version.d.ts +1 -0
  59. package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -0
  60. package/types/{helpers → cjs/helpers}/preview-lru-cache/set.d.ts +1 -1
  61. package/types/{helpers → cjs/helpers}/preview-lru-cache/types.d.ts +1 -1
  62. package/types/cjs/index-helpers/blocks-exports.d.ts +19 -0
  63. package/types/{server-index.d.ts → cjs/server-index.d.ts} +2 -2
  64. package/types/esm/blocks/button/button.d.ts +12 -0
  65. package/types/esm/blocks/button/component-info.d.ts +2 -0
  66. package/types/esm/blocks/columns/columns.d.ts +17 -0
  67. package/types/esm/blocks/columns/component-info.d.ts +2 -0
  68. package/types/esm/blocks/custom-code/component-info.d.ts +2 -0
  69. package/types/esm/blocks/custom-code/custom-code.d.ts +7 -0
  70. package/types/esm/blocks/embed/component-info.d.ts +2 -0
  71. package/types/esm/blocks/embed/embed.d.ts +6 -0
  72. package/types/esm/blocks/embed/helpers.d.ts +1 -0
  73. package/types/esm/blocks/fragment/component-info.d.ts +2 -0
  74. package/types/esm/blocks/fragment/fragment.d.ts +8 -0
  75. package/types/esm/blocks/helpers.d.ts +13 -0
  76. package/types/esm/blocks/image/component-info.d.ts +2 -0
  77. package/types/esm/blocks/image/image.d.ts +22 -0
  78. package/types/esm/blocks/image/image.helpers.d.ts +1 -0
  79. package/types/esm/blocks/img/component-info.d.ts +2 -0
  80. package/types/esm/blocks/img/img.d.ts +14 -0
  81. package/types/esm/blocks/section/component-info.d.ts +2 -0
  82. package/types/esm/blocks/section/section.d.ts +12 -0
  83. package/types/esm/blocks/symbol/component-info.d.ts +2 -0
  84. package/types/esm/blocks/symbol/symbol.d.ts +26 -0
  85. package/types/esm/blocks/symbol/symbol.helpers.d.ts +14 -0
  86. package/types/esm/blocks/text/component-info.d.ts +2 -0
  87. package/types/esm/blocks/text/text.d.ts +6 -0
  88. package/types/esm/blocks/video/component-info.d.ts +2 -0
  89. package/types/esm/blocks/video/video.d.ts +20 -0
  90. package/types/esm/components/block/block.d.ts +10 -0
  91. package/types/esm/components/block/block.helpers.d.ts +13 -0
  92. package/types/esm/components/block/components/block-styles.d.ts +9 -0
  93. package/types/esm/components/block/components/block-wrapper.d.ts +18 -0
  94. package/types/esm/components/block/components/component-ref/component-ref.d.ts +4 -0
  95. package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
  96. package/types/esm/components/block/components/interactive-element.d.ts +12 -0
  97. package/types/esm/components/block/components/repeated-block.d.ts +10 -0
  98. package/types/esm/components/block/types.d.ts +6 -0
  99. package/types/esm/components/blocks/blocks-wrapper.d.ts +11 -0
  100. package/types/esm/components/blocks/blocks.d.ts +9 -0
  101. package/types/esm/components/content/components/enable-editor.d.ts +10 -0
  102. package/types/esm/components/content/components/styles.d.ts +9 -0
  103. package/types/esm/components/content/components/styles.helpers.d.ts +15 -0
  104. package/types/esm/components/content/content.d.ts +4 -0
  105. package/types/esm/components/content/content.helpers.d.ts +7 -0
  106. package/types/esm/components/content/content.types.d.ts +24 -0
  107. package/types/esm/components/content/wrap-component-ref.d.ts +6 -0
  108. package/types/esm/components/content-variants/content-variants.d.ts +10 -0
  109. package/types/esm/components/content-variants/content-variants.types.d.ts +20 -0
  110. package/types/esm/components/content-variants/helpers.d.ts +41 -0
  111. package/types/esm/components/inlined-script.d.ts +7 -0
  112. package/types/esm/components/inlined-styles.d.ts +7 -0
  113. package/types/esm/constants/builder-registered-components.d.ts +6 -0
  114. package/types/esm/constants/device-sizes.d.ts +13 -0
  115. package/types/esm/constants/sdk-version.d.ts +1 -0
  116. package/types/esm/constants/target.d.ts +2 -0
  117. package/types/esm/context/builder.context.d.ts +3 -0
  118. package/types/esm/context/components.context.d.ts +3 -0
  119. package/types/esm/context/types.d.ts +35 -0
  120. package/types/esm/functions/camel-to-kebab-case.d.ts +1 -0
  121. package/types/esm/functions/deopt.d.ts +4 -0
  122. package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  123. package/types/esm/functions/evaluate/browser-runtime/index.d.ts +1 -0
  124. package/types/esm/functions/evaluate/choose-eval.d.ts +6 -0
  125. package/types/esm/functions/evaluate/evaluate.d.ts +2 -0
  126. package/types/esm/functions/evaluate/helpers.d.ts +24 -0
  127. package/types/esm/functions/evaluate/index.d.ts +1 -0
  128. package/types/esm/functions/event-handler-name.d.ts +1 -0
  129. package/types/esm/functions/extract-text-styles.d.ts +4 -0
  130. package/types/esm/functions/fast-clone.d.ts +4 -0
  131. package/types/esm/functions/fetch-builder-props.d.ts +53 -0
  132. package/types/esm/functions/get-block-actions-handler.d.ts +8 -0
  133. package/types/esm/functions/get-block-actions.d.ts +10 -0
  134. package/types/esm/functions/get-block-component-options.d.ts +2 -0
  135. package/types/esm/functions/get-block-properties.d.ts +6 -0
  136. package/types/esm/functions/get-builder-search-params/index.d.ts +12 -0
  137. package/types/esm/functions/get-content/generate-content-url.d.ts +2 -0
  138. package/types/esm/functions/get-content/index.d.ts +28 -0
  139. package/types/esm/functions/get-content/types.d.ts +142 -0
  140. package/types/esm/functions/get-fetch.d.ts +1 -0
  141. package/types/esm/functions/get-global-this.d.ts +4 -0
  142. package/types/esm/functions/get-processed-block.d.ts +10 -0
  143. package/types/esm/functions/get-react-native-block-styles.d.ts +7 -0
  144. package/types/esm/functions/is-browser.d.ts +1 -0
  145. package/types/esm/functions/is-editing.d.ts +1 -0
  146. package/types/esm/functions/is-iframe.d.ts +1 -0
  147. package/types/esm/functions/is-previewing.d.ts +1 -0
  148. package/types/esm/functions/register-component.d.ts +15 -0
  149. package/types/esm/functions/register.d.ts +16 -0
  150. package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
  151. package/types/esm/functions/set-editor-settings.d.ts +4 -0
  152. package/types/esm/functions/set.d.ts +7 -0
  153. package/types/esm/functions/track/helpers.d.ts +5 -0
  154. package/types/esm/functions/track/index.d.ts +51 -0
  155. package/types/esm/functions/track/interaction.d.ts +13 -0
  156. package/types/esm/functions/transform-block-properties.d.ts +1 -0
  157. package/types/esm/functions/transform-block.d.ts +2 -0
  158. package/types/esm/helpers/ab-tests.d.ts +9 -0
  159. package/types/esm/helpers/canTrack.d.ts +1 -0
  160. package/types/esm/helpers/cookie.d.ts +19 -0
  161. package/types/esm/helpers/css.d.ts +7 -0
  162. package/types/esm/helpers/flatten.d.ts +6 -0
  163. package/types/esm/helpers/localStorage.d.ts +9 -0
  164. package/types/esm/helpers/logger.d.ts +6 -0
  165. package/types/esm/helpers/nullable.d.ts +2 -0
  166. package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -0
  167. package/types/esm/helpers/preview-lru-cache/helpers.d.ts +1 -0
  168. package/types/esm/helpers/preview-lru-cache/init.d.ts +6 -0
  169. package/types/esm/helpers/preview-lru-cache/set.d.ts +7 -0
  170. package/types/esm/helpers/preview-lru-cache/types.d.ts +12 -0
  171. package/types/esm/helpers/sessionId.d.ts +6 -0
  172. package/types/esm/helpers/url.d.ts +6 -0
  173. package/types/esm/helpers/uuid.d.ts +8 -0
  174. package/types/esm/helpers/visitorId.d.ts +6 -0
  175. package/types/esm/index-helpers/blocks-exports.d.ts +19 -0
  176. package/types/esm/index-helpers/top-of-file.d.ts +1 -0
  177. package/types/esm/index.d.ts +7 -0
  178. package/types/esm/scripts/init-editing.d.ts +6 -0
  179. package/types/esm/server-index.d.ts +15 -0
  180. package/types/esm/types/api-version.d.ts +2 -0
  181. package/types/esm/types/builder-block.d.ts +66 -0
  182. package/types/esm/types/builder-content.d.ts +44 -0
  183. package/types/esm/types/builder-props.d.ts +9 -0
  184. package/types/esm/types/can-track.d.ts +3 -0
  185. package/types/esm/types/components.d.ts +110 -0
  186. package/types/esm/types/deep-partial.d.ts +3 -0
  187. package/types/esm/types/element.d.ts +59 -0
  188. package/types/esm/types/enforced-partials.d.ts +21 -0
  189. package/types/esm/types/input.d.ts +121 -0
  190. package/types/esm/types/targets.d.ts +1 -0
  191. package/types/esm/types/typescript.d.ts +11 -0
  192. package/lib/browser/USE_CLIENT_BUNDLE-36991304.js +0 -23
  193. package/lib/browser/USE_SERVER_BUNDLE-2ca6fbdb.js +0 -1
  194. package/lib/browser/bundle-55af31a8.js +0 -76
  195. package/lib/edge/USE_CLIENT_BUNDLE-66349ab4.js +0 -23
  196. package/lib/edge/USE_SERVER_BUNDLE-02f64ca7.js +0 -1
  197. package/lib/node/USE_CLIENT_BUNDLE-9a315fd7.js +0 -23
  198. package/lib/node/USE_SERVER_BUNDLE-ddf14d3b.js +0 -1
  199. package/lib/node/bundle-b8de5bb9.js +0 -116
  200. package/types/blocks/embed/embed.d.ts +0 -6
  201. package/types/blocks/text/text.d.ts +0 -6
  202. package/types/components/block/components/component-ref/component-ref.d.ts +0 -4
  203. package/types/components/content/content.d.ts +0 -4
  204. package/types/components/inlined-script.d.ts +0 -7
  205. package/types/components/inlined-styles.d.ts +0 -7
  206. package/types/constants/sdk-version.d.ts +0 -1
  207. package/types/helpers/preview-lru-cache/get.d.ts +0 -1
  208. package/types/index-helpers/blocks-exports.d.ts +0 -19
  209. package/types/{blocks → cjs/blocks}/button/component-info.d.ts +0 -0
  210. package/types/{blocks → cjs/blocks}/columns/component-info.d.ts +0 -0
  211. package/types/{blocks → cjs/blocks}/custom-code/component-info.d.ts +0 -0
  212. package/types/{blocks → cjs/blocks}/embed/component-info.d.ts +0 -0
  213. package/types/{blocks → cjs/blocks}/embed/helpers.d.ts +0 -0
  214. package/types/{blocks → cjs/blocks}/fragment/component-info.d.ts +0 -0
  215. package/types/{blocks → cjs/blocks}/helpers.d.ts +0 -0
  216. package/types/{blocks → cjs/blocks}/image/component-info.d.ts +0 -0
  217. package/types/{blocks → cjs/blocks}/image/image.helpers.d.ts +0 -0
  218. package/types/{blocks → cjs/blocks}/img/component-info.d.ts +0 -0
  219. package/types/{blocks → cjs/blocks}/section/component-info.d.ts +0 -0
  220. package/types/{blocks → cjs/blocks}/symbol/component-info.d.ts +0 -0
  221. package/types/{blocks → cjs/blocks}/symbol/symbol.helpers.d.ts +0 -0
  222. package/types/{blocks → cjs/blocks}/text/component-info.d.ts +0 -0
  223. package/types/{blocks → cjs/blocks}/video/component-info.d.ts +0 -0
  224. package/types/{components → cjs/components}/block/block.helpers.d.ts +0 -0
  225. package/types/{components → cjs/components}/block/types.d.ts +0 -0
  226. package/types/{components → cjs/components}/content/components/styles.helpers.d.ts +0 -0
  227. package/types/{components → cjs/components}/content/content.helpers.d.ts +0 -0
  228. package/types/{components → cjs/components}/content/content.types.d.ts +0 -0
  229. package/types/{components → cjs/components}/content/wrap-component-ref.d.ts +0 -0
  230. package/types/{components → cjs/components}/content-variants/content-variants.types.d.ts +0 -0
  231. package/types/{components → cjs/components}/content-variants/helpers.d.ts +0 -0
  232. package/types/{constants → cjs/constants}/builder-registered-components.d.ts +0 -0
  233. package/types/{constants → cjs/constants}/device-sizes.d.ts +0 -0
  234. package/types/{constants → cjs/constants}/target.d.ts +0 -0
  235. package/types/{context → cjs/context}/builder.context.d.ts +0 -0
  236. package/types/{context → cjs/context}/components.context.d.ts +0 -0
  237. package/types/{context → cjs/context}/types.d.ts +1 -1
  238. package/types/{functions → cjs/functions}/camel-to-kebab-case.d.ts +0 -0
  239. package/types/{functions → cjs/functions}/deopt.d.ts +0 -0
  240. package/types/{functions → cjs/functions}/evaluate/browser-runtime/browser.d.ts +0 -0
  241. package/types/{functions → cjs/functions}/evaluate/browser-runtime/index.d.ts +0 -0
  242. package/types/{functions → cjs/functions}/evaluate/choose-eval.d.ts +0 -0
  243. package/types/{functions → cjs/functions}/evaluate/evaluate.d.ts +0 -0
  244. package/types/{functions → cjs/functions}/evaluate/helpers.d.ts +0 -0
  245. package/types/{functions → cjs/functions}/evaluate/index.d.ts +0 -0
  246. package/types/{functions → cjs/functions}/event-handler-name.d.ts +0 -0
  247. package/types/{functions → cjs/functions}/extract-text-styles.d.ts +0 -0
  248. package/types/{functions → cjs/functions}/fast-clone.d.ts +0 -0
  249. package/types/{functions → cjs/functions}/fetch-builder-props.d.ts +0 -0
  250. package/types/{functions → cjs/functions}/get-block-actions-handler.d.ts +0 -0
  251. package/types/{functions → cjs/functions}/get-block-actions.d.ts +0 -0
  252. package/types/{functions → cjs/functions}/get-block-component-options.d.ts +0 -0
  253. package/types/{functions → cjs/functions}/get-block-properties.d.ts +0 -0
  254. package/types/{functions → cjs/functions}/get-builder-search-params/index.d.ts +0 -0
  255. package/types/{functions → cjs/functions}/get-content/generate-content-url.d.ts +0 -0
  256. package/types/{functions → cjs/functions}/get-content/index.d.ts +0 -0
  257. package/types/{functions → cjs/functions}/get-content/types.d.ts +0 -0
  258. package/types/{functions → cjs/functions}/get-fetch.d.ts +0 -0
  259. package/types/{functions → cjs/functions}/get-global-this.d.ts +0 -0
  260. package/types/{functions → cjs/functions}/get-processed-block.d.ts +0 -0
  261. package/types/{functions → cjs/functions}/get-react-native-block-styles.d.ts +0 -0
  262. package/types/{functions → cjs/functions}/is-browser.d.ts +0 -0
  263. package/types/{functions → cjs/functions}/is-editing.d.ts +0 -0
  264. package/types/{functions → cjs/functions}/is-iframe.d.ts +0 -0
  265. package/types/{functions → cjs/functions}/is-previewing.d.ts +0 -0
  266. package/types/{functions → cjs/functions}/register-component.d.ts +0 -0
  267. package/types/{functions → cjs/functions}/register.d.ts +0 -0
  268. package/types/{functions → cjs/functions}/sanitize-react-native-block-styles.d.ts +0 -0
  269. package/types/{functions → cjs/functions}/set-editor-settings.d.ts +0 -0
  270. package/types/{functions → cjs/functions}/set.d.ts +0 -0
  271. package/types/{functions → cjs/functions}/track/helpers.d.ts +0 -0
  272. package/types/{functions → cjs/functions}/track/index.d.ts +0 -0
  273. package/types/{functions → cjs/functions}/track/interaction.d.ts +0 -0
  274. package/types/{functions → cjs/functions}/transform-block-properties.d.ts +0 -0
  275. package/types/{functions → cjs/functions}/transform-block.d.ts +0 -0
  276. package/types/{helpers → cjs/helpers}/ab-tests.d.ts +1 -1
  277. /package/types/{helpers → cjs/helpers}/canTrack.d.ts +0 -0
  278. /package/types/{helpers → cjs/helpers}/cookie.d.ts +0 -0
  279. /package/types/{helpers → cjs/helpers}/css.d.ts +0 -0
  280. /package/types/{helpers → cjs/helpers}/flatten.d.ts +0 -0
  281. /package/types/{helpers → cjs/helpers}/localStorage.d.ts +0 -0
  282. /package/types/{helpers → cjs/helpers}/logger.d.ts +0 -0
  283. /package/types/{helpers → cjs/helpers}/nullable.d.ts +0 -0
  284. /package/types/{helpers → cjs/helpers}/preview-lru-cache/helpers.d.ts +0 -0
  285. /package/types/{helpers → cjs/helpers}/preview-lru-cache/init.d.ts +0 -0
  286. /package/types/{helpers → cjs/helpers}/sessionId.d.ts +0 -0
  287. /package/types/{helpers → cjs/helpers}/url.d.ts +0 -0
  288. /package/types/{helpers → cjs/helpers}/uuid.d.ts +0 -0
  289. /package/types/{helpers → cjs/helpers}/visitorId.d.ts +0 -0
  290. /package/types/{index-helpers → cjs/index-helpers}/top-of-file.d.ts +0 -0
  291. /package/types/{index.d.ts → cjs/index.d.ts} +0 -0
  292. /package/types/{scripts → cjs/scripts}/init-editing.d.ts +0 -0
  293. /package/types/{types → cjs/types}/api-version.d.ts +0 -0
  294. /package/types/{types → cjs/types}/builder-block.d.ts +0 -0
  295. /package/types/{types → cjs/types}/builder-content.d.ts +0 -0
  296. /package/types/{types → cjs/types}/builder-props.d.ts +0 -0
  297. /package/types/{types → cjs/types}/can-track.d.ts +0 -0
  298. /package/types/{types → cjs/types}/components.d.ts +0 -0
  299. /package/types/{types → cjs/types}/deep-partial.d.ts +0 -0
  300. /package/types/{types → cjs/types}/element.d.ts +0 -0
  301. /package/types/{types → cjs/types}/enforced-partials.d.ts +0 -0
  302. /package/types/{types → cjs/types}/input.d.ts +0 -0
  303. /package/types/{types → cjs/types}/targets.d.ts +0 -0
  304. /package/types/{types → cjs/types}/typescript.d.ts +0 -0
@@ -1,51 +1,20 @@
1
1
  import { LRUCache as Qr } from "lru-cache";
2
2
  import { jsx as I, Fragment as L, jsxs as ue } from "react/jsx-runtime";
3
3
  import { createElement as eo } from "react";
4
- import { I as to, B as Wn, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-bcf2ccc8.mjs";
4
+ import { I as to, B as Wn, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-736c38f3.js";
5
5
  import "next/navigation";
6
- const ut = (e) => JSON.parse(JSON.stringify(e)), cr = {
7
- small: {
8
- min: 320,
9
- default: 321,
10
- max: 640
11
- },
12
- medium: {
13
- min: 641,
14
- default: 642,
15
- max: 991
16
- },
17
- large: {
18
- min: 990,
19
- default: 991,
20
- max: 1200
21
- }
22
- }, Hn = (e, t = cr) => `@media (max-width: ${t[e].max}px)`, ur = ({
23
- small: e,
24
- medium: t
25
- }) => {
26
- const n = ut(cr);
27
- if (!e || !t)
28
- return n;
29
- const r = Math.floor(e / 2);
30
- n.small = {
31
- max: e,
32
- min: r,
33
- default: r + 1
34
- };
35
- const o = n.small.max + 1;
36
- n.medium = {
37
- max: t,
38
- min: o,
39
- default: o + 1
6
+ function po(e) {
7
+ var t;
8
+ return {
9
+ ...(t = e.component) == null ? void 0 : t.options,
10
+ ...e.options,
11
+ /**
12
+ * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
13
+ */
14
+ builderBlock: e
40
15
  };
41
- const i = n.medium.max + 1;
42
- return n.large = {
43
- max: 2e3,
44
- // TODO: decide upper limit
45
- min: i,
46
- default: i + 1
47
- }, n;
48
- }, xe = "rsc", at = "[Builder.io]: ", q = {
16
+ }
17
+ const at = "[Builder.io]: ", q = {
49
18
  log: (...e) => console.log(at, ...e),
50
19
  error: (...e) => console.error(at, ...e),
51
20
  warn: (...e) => console.warn(at, ...e),
@@ -54,20 +23,21 @@ const ut = (e) => JSON.parse(JSON.stringify(e)), cr = {
54
23
  function G() {
55
24
  return typeof window < "u" && typeof document < "u";
56
25
  }
57
- function po() {
26
+ const xe = "rsc";
27
+ function ho() {
58
28
  return G() && window.self !== window.top;
59
29
  }
60
30
  function Xt() {
61
- return po() && window.location.search.indexOf("builder.frameEditing=") !== -1;
31
+ return ho() && window.location.search.indexOf("builder.frameEditing=") !== -1;
62
32
  }
63
- const ho = () => {
33
+ const mo = () => {
64
34
  if (G()) {
65
35
  const e = new URL(location.href);
66
36
  return e.pathname === "" && (e.pathname = "/"), e;
67
37
  } else
68
38
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
69
- }, mo = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
70
- const e = mo(), t = {
39
+ }, go = () => typeof navigator == "object" && navigator.userAgent || "", cr = () => {
40
+ const e = go(), t = {
71
41
  Android() {
72
42
  return e.match(/Android/i);
73
43
  },
@@ -86,13 +56,13 @@ const ho = () => {
86
56
  any() {
87
57
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || xe === "reactNative";
88
58
  }
89
- }, n = e.match(/Tablet|iPad/i), r = ho();
59
+ }, n = e.match(/Tablet|iPad/i), r = mo();
90
60
  return {
91
61
  urlPath: r == null ? void 0 : r.pathname,
92
62
  host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
93
63
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
94
64
  };
95
- }, pr = ({
65
+ }, ur = ({
96
66
  builder: e,
97
67
  context: t,
98
68
  event: n,
@@ -104,14 +74,14 @@ const ho = () => {
104
74
  builder: e,
105
75
  context: t,
106
76
  event: n
107
- }), go = () => ({
77
+ }), yo = () => ({
108
78
  isEditing: Xt(),
109
79
  isBrowser: G(),
110
80
  isServer: !G(),
111
- getUserAttributes: () => fr()
112
- }), yo = (e, {
81
+ getUserAttributes: () => cr()
82
+ }), vo = (e, {
113
83
  isExpression: t = !0
114
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, vo = ({
84
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
115
85
  code: e,
116
86
  builder: t,
117
87
  context: n,
@@ -120,15 +90,15 @@ const ho = () => {
120
90
  rootSetState: i,
121
91
  rootState: s
122
92
  }) => {
123
- const f = pr({
93
+ const u = ur({
124
94
  builder: t,
125
95
  context: n,
126
96
  event: r,
127
- state: xo(s, o, i)
97
+ state: bo(s, o, i)
128
98
  });
129
- return new Function(...f.map(([p]) => p), e)(...f.map(([, p]) => p));
99
+ return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
130
100
  };
131
- function xo(e, t, n) {
101
+ function bo(e, t, n) {
132
102
  if (e === t)
133
103
  throw new Error("rootState === localState");
134
104
  return new Proxy(e, {
@@ -140,7 +110,7 @@ function xo(e, t, n) {
140
110
  }
141
111
  });
142
112
  }
143
- const hr = (e, t, n) => {
113
+ const fr = (e, t, n) => {
144
114
  if (Object(e) !== e)
145
115
  return e;
146
116
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -165,7 +135,7 @@ var M, wo = function(e) {
165
135
  throw c = {
166
136
  line: h,
167
137
  ab: a - A
168
- }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = u, l;
138
+ }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
169
139
  }
170
140
  function o(a) {
171
141
  a = a.split(" ");
@@ -176,43 +146,43 @@ var M, wo = function(e) {
176
146
  };
177
147
  }
178
148
  function i() {
179
- this.line = be, this.ab = u - oe;
149
+ this.line = we, this.ab = f - oe;
180
150
  }
181
151
  function s(a, l) {
182
- Ce = u, O.C && (Ct = new i()), T = a, p(), Q = l, Ue = a.m;
152
+ Ce = f, O.C && (Ct = new i()), T = a, p(), Q = l, Fe = a.m;
183
153
  }
184
- function f() {
185
- for (var a = u, l = O.va && O.C && new i(), c = x.charCodeAt(u += 2); u < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
186
- ++u, c = x.charCodeAt(u);
187
- O.va && O.va(!1, x.slice(a + 2, u), a, u, l, O.C && new i());
154
+ function u() {
155
+ for (var a = f, l = O.va && O.C && new i(), c = x.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
156
+ ++f, c = x.charCodeAt(f);
157
+ O.va && O.va(!1, x.slice(a + 2, f), a, f, l, O.C && new i());
188
158
  }
189
159
  function p() {
190
- for (; u < ke; ) {
191
- var a = x.charCodeAt(u);
160
+ for (; f < ke; ) {
161
+ var a = x.charCodeAt(f);
192
162
  if (a === 32)
193
- ++u;
163
+ ++f;
194
164
  else if (a === 13)
195
- ++u, a = x.charCodeAt(u), a === 10 && ++u, O.C && (++be, oe = u);
165
+ ++f, a = x.charCodeAt(f), a === 10 && ++f, O.C && (++we, oe = f);
196
166
  else if (a === 10 || a === 8232 || a === 8233)
197
- ++u, O.C && (++be, oe = u);
167
+ ++f, O.C && (++we, oe = f);
198
168
  else if (8 < a && 14 > a)
199
- ++u;
169
+ ++f;
200
170
  else if (a === 47)
201
- if (a = x.charCodeAt(u + 1), a === 42) {
171
+ if (a = x.charCodeAt(f + 1), a === 42) {
202
172
  a = void 0;
203
- var l = O.va && O.C && new i(), c = u, h = x.indexOf("*/", u += 2);
204
- if (h === -1 && r(u - 2, "Unterminated comment"), u = h + 2, O.C)
205
- for (it.lastIndex = c; (a = it.exec(x)) && a.index < u; )
206
- ++be, oe = a.index + a[0].length;
207
- O.va && O.va(!0, x.slice(c + 2, h), c, u, l, O.C && new i());
173
+ var l = O.va && O.C && new i(), c = f, h = x.indexOf("*/", f += 2);
174
+ if (h === -1 && r(f - 2, "Unterminated comment"), f = h + 2, O.C)
175
+ for (it.lastIndex = c; (a = it.exec(x)) && a.index < f; )
176
+ ++we, oe = a.index + a[0].length;
177
+ O.va && O.va(!0, x.slice(c + 2, h), c, f, l, O.C && new i());
208
178
  } else if (a === 47)
209
- f();
179
+ u();
210
180
  else
211
181
  break;
212
182
  else if (a === 160)
213
- ++u;
183
+ ++f;
214
184
  else if (5760 <= a && Yr.test(String.fromCharCode(a)))
215
- ++u;
185
+ ++f;
216
186
  else
217
187
  break;
218
188
  }
@@ -220,31 +190,31 @@ var M, wo = function(e) {
220
190
  function g(a) {
221
191
  switch (a) {
222
192
  case 46:
223
- a = x.charCodeAt(u + 1), 48 <= a && 57 >= a ? S(!0) : (++u, s(Mn));
193
+ a = x.charCodeAt(f + 1), 48 <= a && 57 >= a ? S(!0) : (++f, s(Mn));
224
194
  return;
225
195
  case 40:
226
- return ++u, s(ie);
196
+ return ++f, s(ie);
227
197
  case 41:
228
- return ++u, s(te);
198
+ return ++f, s(te);
229
199
  case 59:
230
- return ++u, s(ae);
200
+ return ++f, s(ae);
231
201
  case 44:
232
- return ++u, s(ye);
202
+ return ++f, s(ye);
233
203
  case 91:
234
- return ++u, s(Mt);
204
+ return ++f, s(Mt);
235
205
  case 93:
236
- return ++u, s(Ft);
206
+ return ++f, s(Bt);
237
207
  case 123:
238
- return ++u, s(_e);
208
+ return ++f, s(_e);
239
209
  case 125:
240
- return ++u, s(Ie);
210
+ return ++f, s(Ie);
241
211
  case 58:
242
- return ++u, s(Le);
212
+ return ++f, s(Le);
243
213
  case 63:
244
- return ++u, s(Fn);
214
+ return ++f, s(Bn);
245
215
  case 48:
246
- if (a = x.charCodeAt(u + 1), a === 120 || a === 88) {
247
- u += 2, a = E(16), a === null && r($ + 2, "Expected hexadecimal number"), n(x.charCodeAt(u)) && r(u, "Identifier directly after number"), s(Ve, a);
216
+ if (a = x.charCodeAt(f + 1), a === 120 || a === 88) {
217
+ f += 2, a = E(16), a === null && r($ + 2, "Expected hexadecimal number"), n(x.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, a);
248
218
  return;
249
219
  }
250
220
  case 49:
@@ -259,21 +229,21 @@ var M, wo = function(e) {
259
229
  return S(!1);
260
230
  case 34:
261
231
  case 39:
262
- u++;
232
+ f++;
263
233
  for (var l = ""; ; ) {
264
- u >= ke && r($, "Unterminated string constant");
265
- var c = x.charCodeAt(u);
234
+ f >= ke && r($, "Unterminated string constant");
235
+ var c = x.charCodeAt(f);
266
236
  if (c === a) {
267
- ++u, s(tt, l);
237
+ ++f, s(tt, l);
268
238
  break;
269
239
  }
270
240
  if (c === 92) {
271
- c = x.charCodeAt(++u);
272
- var h = /^[0-7]+/.exec(x.slice(u, u + 3));
241
+ c = x.charCodeAt(++f);
242
+ var h = /^[0-7]+/.exec(x.slice(f, f + 3));
273
243
  for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
274
244
  h = h.slice(0, -1);
275
- if (h === "0" && (h = null), ++u, h)
276
- Y && r(u - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), u += h.length - 1;
245
+ if (h === "0" && (h = null), ++f, h)
246
+ Y && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), f += h.length - 1;
277
247
  else
278
248
  switch (c) {
279
249
  case 110:
@@ -308,69 +278,69 @@ var M, wo = function(e) {
308
278
  l += "\0";
309
279
  break;
310
280
  case 13:
311
- x.charCodeAt(u) === 10 && ++u;
281
+ x.charCodeAt(f) === 10 && ++f;
312
282
  case 10:
313
- O.C && (oe = u, ++be);
283
+ O.C && (oe = f, ++we);
314
284
  break;
315
285
  default:
316
286
  l += String.fromCharCode(c);
317
287
  }
318
288
  } else
319
- c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r($, "Unterminated string constant"), l += String.fromCharCode(c), ++u;
289
+ c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r($, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
320
290
  }
321
291
  return;
322
292
  case 47:
323
- a = x.charCodeAt(u + 1), Ue ? (++u, N()) : a === 61 ? b(Se, 2) : b(Un, 1);
293
+ a = x.charCodeAt(f + 1), Fe ? (++f, N()) : a === 61 ? w(Se, 2) : w(Fn, 1);
324
294
  return;
325
295
  case 37:
326
296
  case 42:
327
- x.charCodeAt(u + 1) === 61 ? b(Se, 2) : b(Xr, 1);
297
+ x.charCodeAt(f + 1) === 61 ? w(Se, 2) : w(Xr, 1);
328
298
  return;
329
299
  case 124:
330
300
  case 38:
331
- l = x.charCodeAt(u + 1), l === a ? b(a === 124 ? _n : Ln, 2) : l === 61 ? b(Se, 2) : b(a === 124 ? Lr : Dr, 1);
301
+ l = x.charCodeAt(f + 1), l === a ? w(a === 124 ? _n : Ln, 2) : l === 61 ? w(Se, 2) : w(a === 124 ? Lr : Dr, 1);
332
302
  return;
333
303
  case 94:
334
- x.charCodeAt(u + 1) === 61 ? b(Se, 2) : b($r, 1);
304
+ x.charCodeAt(f + 1) === 61 ? w(Se, 2) : w($r, 1);
335
305
  return;
336
306
  case 43:
337
307
  case 45:
338
- l = x.charCodeAt(u + 1), l === a ? l === 45 && x.charCodeAt(u + 2) === 62 && ot.test(x.slice(ge, u)) ? (u += 3, f(), p(), v()) : b(_r, 2) : l === 61 ? b(Se, 2) : b(Gr, 1);
308
+ l = x.charCodeAt(f + 1), l === a ? l === 45 && x.charCodeAt(f + 2) === 62 && ot.test(x.slice(ge, f)) ? (f += 3, u(), p(), v()) : w(_r, 2) : l === 61 ? w(Se, 2) : w(Gr, 1);
339
309
  return;
340
310
  case 60:
341
311
  case 62:
342
- l = x.charCodeAt(u + 1), c = 1, l === a ? (c = a === 62 && x.charCodeAt(u + 2) === 62 ? 3 : 2, x.charCodeAt(u + c) === 61 ? b(Se, c + 1) : b(Kr, c)) : l === 33 && a === 60 && x.charCodeAt(u + 2) === 45 && x.charCodeAt(u + 3) === 45 ? (u += 4, f(), p(), v()) : (l === 61 && (c = x.charCodeAt(u + 2) === 61 ? 3 : 2), b(Hr, c));
312
+ l = x.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && x.charCodeAt(f + 2) === 62 ? 3 : 2, x.charCodeAt(f + c) === 61 ? w(Se, c + 1) : w(Kr, c)) : l === 33 && a === 60 && x.charCodeAt(f + 2) === 45 && x.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), v()) : (l === 61 && (c = x.charCodeAt(f + 2) === 61 ? 3 : 2), w(Hr, c));
343
313
  return;
344
314
  case 61:
345
315
  case 33:
346
- x.charCodeAt(u + 1) === 61 ? b(Wr, x.charCodeAt(u + 2) === 61 ? 3 : 2) : b(a === 61 ? Bn : Vn, 1);
316
+ x.charCodeAt(f + 1) === 61 ? w(Wr, x.charCodeAt(f + 2) === 61 ? 3 : 2) : w(a === 61 ? Un : Vn, 1);
347
317
  return;
348
318
  case 126:
349
- return b(Vn, 1);
319
+ return w(Vn, 1);
350
320
  }
351
321
  return !1;
352
322
  }
353
323
  function v(a) {
354
- if (a ? u = $ + 1 : $ = u, O.C && (kt = new i()), a)
324
+ if (a ? f = $ + 1 : $ = f, O.C && (kt = new i()), a)
355
325
  return N();
356
- if (u >= ke)
326
+ if (f >= ke)
357
327
  return s(Tt);
358
- if (a = x.charCodeAt(u), n(a) || a === 92)
359
- return F();
328
+ if (a = x.charCodeAt(f), n(a) || a === 92)
329
+ return B();
360
330
  if (g(a) === !1) {
361
331
  if (a = String.fromCharCode(a), a === "\\" || Dn.test(a))
362
- return F();
363
- r(u, "Unexpected character '" + a + "'");
332
+ return B();
333
+ r(f, "Unexpected character '" + a + "'");
364
334
  }
365
335
  }
366
- function b(a, l) {
367
- var c = x.slice(u, u + l);
368
- u += l, s(a, c);
336
+ function w(a, l) {
337
+ var c = x.slice(f, f + l);
338
+ f += l, s(a, c);
369
339
  }
370
340
  function N() {
371
- for (var a, l, c = u; ; ) {
372
- u >= ke && r(c, "Unterminated regexp");
373
- var h = x.charAt(u);
341
+ for (var a, l, c = f; ; ) {
342
+ f >= ke && r(c, "Unterminated regexp");
343
+ var h = x.charAt(f);
374
344
  if (ot.test(h) && r(c, "Unterminated regexp"), a)
375
345
  a = !1;
376
346
  else {
@@ -382,9 +352,9 @@ var M, wo = function(e) {
382
352
  break;
383
353
  a = h === "\\";
384
354
  }
385
- ++u;
355
+ ++f;
386
356
  }
387
- a = x.slice(c, u), ++u, (l = P()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
357
+ a = x.slice(c, f), ++f, (l = P()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
388
358
  try {
389
359
  var A = new RegExp(a, l);
390
360
  } catch (D) {
@@ -393,17 +363,17 @@ var M, wo = function(e) {
393
363
  s(mn, A);
394
364
  }
395
365
  function E(a, l) {
396
- for (var c = u, h = 0, A = l === void 0 ? 1 / 0 : l, D = 0; D < A; ++D) {
397
- var X = x.charCodeAt(u);
366
+ for (var c = f, h = 0, A = l === void 0 ? 1 / 0 : l, D = 0; D < A; ++D) {
367
+ var X = x.charCodeAt(f);
398
368
  if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= a)
399
369
  break;
400
- ++u, h = h * a + X;
370
+ ++f, h = h * a + X;
401
371
  }
402
- return u === c || l !== void 0 && u - c !== l ? null : h;
372
+ return f === c || l !== void 0 && f - c !== l ? null : h;
403
373
  }
404
374
  function S(a) {
405
- var l = u, c = !1, h = x.charCodeAt(u) === 48;
406
- a || E(10) !== null || r(l, "Invalid number"), x.charCodeAt(u) === 46 && (++u, E(10), c = !0), a = x.charCodeAt(u), (a === 69 || a === 101) && (a = x.charCodeAt(++u), a !== 43 && a !== 45 || ++u, E(10) === null && r(l, "Invalid number"), c = !0), n(x.charCodeAt(u)) && r(u, "Identifier directly after number"), a = x.slice(l, u);
375
+ var l = f, c = !1, h = x.charCodeAt(f) === 48;
376
+ a || E(10) !== null || r(l, "Invalid number"), x.charCodeAt(f) === 46 && (++f, E(10), c = !0), a = x.charCodeAt(f), (a === 69 || a === 101) && (a = x.charCodeAt(++f), a !== 43 && a !== 45 || ++f, E(10) === null && r(l, "Invalid number"), c = !0), n(x.charCodeAt(f)) && r(f, "Identifier directly after number"), a = x.slice(l, f);
407
377
  var A;
408
378
  c ? A = parseFloat(a) : h && a.length !== 1 ? /[89]/.test(a) || Y ? r(l, "Invalid number") : A = parseInt(a, 8) : A = parseInt(a, 10), s(Ve, A);
409
379
  }
@@ -412,21 +382,21 @@ var M, wo = function(e) {
412
382
  }
413
383
  function P() {
414
384
  Te = !1;
415
- for (var a, l = !0, c = u; ; ) {
416
- var h = x.charCodeAt(u);
385
+ for (var a, l = !0, c = f; ; ) {
386
+ var h = x.charCodeAt(f);
417
387
  if (t(h))
418
- Te && (a += x.charAt(u)), ++u;
388
+ Te && (a += x.charAt(f)), ++f;
419
389
  else if (h === 92) {
420
- Te || (a = x.slice(c, u)), Te = !0, x.charCodeAt(++u) !== 117 && r(u, "Expecting Unicode escape sequence \\uXXXX"), ++u, h = y(4);
390
+ Te || (a = x.slice(c, f)), Te = !0, x.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, h = y(4);
421
391
  var A = String.fromCharCode(h);
422
- A || r(u - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(u - 4, "Invalid Unicode escape"), a += A;
392
+ A || r(f - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(f - 4, "Invalid Unicode escape"), a += A;
423
393
  } else
424
394
  break;
425
395
  l = !1;
426
396
  }
427
- return Te ? a : x.slice(c, u);
397
+ return Te ? a : x.slice(c, f);
428
398
  }
429
- function F() {
399
+ function B() {
430
400
  var a = P(), l = Ee;
431
401
  !Te && zr(a) && (l = Vr[a]), s(l, a);
432
402
  }
@@ -434,10 +404,10 @@ var M, wo = function(e) {
434
404
  Et = $, ge = Ce, It = Ct, v();
435
405
  }
436
406
  function he(a) {
437
- if (Y = a, u = $, O.C)
438
- for (; u < oe; )
407
+ if (Y = a, f = $, O.C)
408
+ for (; f < oe; )
439
409
  oe = x.lastIndexOf(`
440
- `, oe - 2) + 1, --be;
410
+ `, oe - 2) + 1, --we;
441
411
  p(), v();
442
412
  }
443
413
  function de() {
@@ -446,7 +416,7 @@ var M, wo = function(e) {
446
416
  function Z() {
447
417
  this.start = kt, this.end = null, St && (this.source = St);
448
418
  }
449
- function U() {
419
+ function F() {
450
420
  var a = new de();
451
421
  return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [$, 0]), a;
452
422
  }
@@ -460,14 +430,14 @@ var M, wo = function(e) {
460
430
  function mt(a) {
461
431
  return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
462
432
  }
463
- function B(a) {
433
+ function U(a) {
464
434
  return T === a ? (m(), !0) : !1;
465
435
  }
466
436
  function Ze() {
467
437
  return !O.fc && (T === Tt || T === Ie || ot.test(x.slice(ge, $)));
468
438
  }
469
- function we() {
470
- B(ae) || Ze() || ne();
439
+ function be() {
440
+ U(ae) || Ze() || ne();
471
441
  }
472
442
  function V(a) {
473
443
  T === a ? m() : ne();
@@ -479,14 +449,14 @@ var M, wo = function(e) {
479
449
  a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Y && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
480
450
  }
481
451
  function ee() {
482
- (T === Un || T === Se && Q === "/=") && v(!0);
483
- var a = T, l = U();
452
+ (T === Fn || T === Se && Q === "/=") && v(!0);
453
+ var a = T, l = F();
484
454
  switch (a) {
485
455
  case At:
486
456
  case yn:
487
457
  m();
488
458
  var c = a === At;
489
- B(ae) || Ze() ? l.label = null : T !== Ee ? ne() : (l.label = re(), we());
459
+ U(ae) || Ze() ? l.label = null : T !== Ee ? ne() : (l.label = re(), be());
490
460
  for (var h = 0; h < _.length; ++h) {
491
461
  var A = _[h];
492
462
  if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
@@ -494,29 +464,29 @@ var M, wo = function(e) {
494
464
  }
495
465
  return h === _.length && r(l.start, "Unsyntactic " + a.l), j(l, c ? "BreakStatement" : "ContinueStatement");
496
466
  case vn:
497
- return m(), we(), j(l, "DebuggerStatement");
498
- case wn:
499
- return m(), _.push(Ut), l.body = ee(), _.pop(), V(Nt), l.test = Ne(), we(), j(l, "DoWhileStatement");
467
+ return m(), be(), j(l, "DebuggerStatement");
468
+ case bn:
469
+ return m(), _.push(Ft), l.body = ee(), _.pop(), V(Nt), l.test = Ne(), be(), j(l, "DoWhileStatement");
500
470
  case kn:
501
- return m(), _.push(Ut), V(ie), T === ae ? gt(l, null) : T === Pt ? (a = U(), m(), hn(a, !0), j(a, "VariableDeclaration"), a.fa.length === 1 && B(nt) ? pn(l, a) : gt(l, a)) : (a = K(!1, !0), B(nt) ? (Qe(a), pn(l, a)) : gt(l, a));
471
+ return m(), _.push(Ft), V(ie), T === ae ? gt(l, null) : T === Pt ? (a = F(), m(), hn(a, !0), j(a, "VariableDeclaration"), a.fa.length === 1 && U(nt) ? pn(l, a) : gt(l, a)) : (a = K(!1, !0), U(nt) ? (Qe(a), pn(l, a)) : gt(l, a));
502
472
  case Ot:
503
- return m(), wt(l, !0);
473
+ return m(), bt(l, !0);
504
474
  case Cn:
505
- return m(), l.test = Ne(), l.da = ee(), l.alternate = B(bn) ? ee() : null, j(l, "IfStatement");
475
+ return m(), l.test = Ne(), l.da = ee(), l.alternate = U(wn) ? ee() : null, j(l, "IfStatement");
506
476
  case En:
507
- return Be || O.Ib || r($, "'return' outside of function"), m(), B(ae) || Ze() ? l.K = null : (l.K = K(), we()), j(l, "ReturnStatement");
477
+ return Ue || O.Ib || r($, "'return' outside of function"), m(), U(ae) || Ze() ? l.K = null : (l.K = K(), be()), j(l, "ReturnStatement");
508
478
  case Rt:
509
479
  for (m(), l.Qb = Ne(), l.tb = [], V(_e), _.push(Zr); T !== Ie; )
510
- T === jt || T === xn ? (a = T === jt, h && j(h, "SwitchCase"), l.tb.push(h = U()), h.da = [], m(), a ? h.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, h.test = null), V(Le)) : (h || ne(), h.da.push(ee()));
480
+ T === jt || T === xn ? (a = T === jt, h && j(h, "SwitchCase"), l.tb.push(h = F()), h.da = [], m(), a ? h.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, h.test = null), V(Le)) : (h || ne(), h.da.push(ee()));
511
481
  return h && j(h, "SwitchCase"), m(), _.pop(), j(l, "SwitchStatement");
512
482
  case In:
513
- return m(), ot.test(x.slice(ge, $)) && r(ge, "Illegal newline after throw"), l.K = K(), we(), j(l, "ThrowStatement");
483
+ return m(), ot.test(x.slice(ge, $)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), j(l, "ThrowStatement");
514
484
  case Tn:
515
- return m(), l.block = Me(), l.Ea = null, T === gn && (a = U(), m(), V(ie), a.Ua = re(), Y && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(te), a.body = Me(), l.Ea = j(a, "CatchClause")), l.fb = B(Sn) ? Me() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), j(l, "TryStatement");
485
+ return m(), l.block = Me(), l.Ea = null, T === gn && (a = F(), m(), V(ie), a.Ua = re(), Y && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(te), a.body = Me(), l.Ea = j(a, "CatchClause")), l.fb = U(Sn) ? Me() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), j(l, "TryStatement");
516
486
  case Pt:
517
- return m(), hn(l), we(), j(l, "VariableDeclaration");
487
+ return m(), hn(l), be(), j(l, "VariableDeclaration");
518
488
  case Nt:
519
- return m(), l.test = Ne(), _.push(Ut), l.body = ee(), _.pop(), j(l, "WhileStatement");
489
+ return m(), l.test = Ne(), _.push(Ft), l.body = ee(), _.pop(), j(l, "WhileStatement");
520
490
  case An:
521
491
  return Y && r($, "'with' in strict mode"), m(), l.object = Ne(), l.body = ee(), j(l, "WithStatement");
522
492
  case _e:
@@ -524,7 +494,7 @@ var M, wo = function(e) {
524
494
  case ae:
525
495
  return m(), j(l, "EmptyStatement");
526
496
  default:
527
- if (c = Q, A = K(), a === Ee && A.type === "Identifier" && B(Le)) {
497
+ if (c = Q, A = K(), a === Ee && A.type === "Identifier" && U(Le)) {
528
498
  for (h = 0; h < _.length; ++h)
529
499
  _[h].name === c && r(A.start, "Label '" + c + "' is already declared");
530
500
  return _.push({
@@ -532,7 +502,7 @@ var M, wo = function(e) {
532
502
  kind: T.W ? "loop" : T === Rt ? "switch" : null
533
503
  }), l.body = ee(), _.pop(), l.label = A, j(l, "LabeledStatement");
534
504
  }
535
- return l.la = A, we(), j(l, "ExpressionStatement");
505
+ return l.la = A, be(), j(l, "ExpressionStatement");
536
506
  }
537
507
  }
538
508
  function Ne() {
@@ -541,8 +511,8 @@ var M, wo = function(e) {
541
511
  return V(te), a;
542
512
  }
543
513
  function Me(a) {
544
- var l = U(), c = !0, h = !1;
545
- for (l.body = [], V(_e); !B(Ie); ) {
514
+ var l = F(), c = !0, h = !1;
515
+ for (l.body = [], V(_e); !U(Ie); ) {
546
516
  var A = ee();
547
517
  if (l.body.push(A), c && a && mt(A)) {
548
518
  var D = h;
@@ -560,15 +530,15 @@ var M, wo = function(e) {
560
530
  }
561
531
  function hn(a, l) {
562
532
  for (a.fa = [], a.kind = "var"; ; ) {
563
- var c = U();
564
- if (c.id = re(), Y && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = B(Bn) ? K(!0, l) : null, a.fa.push(j(c, "VariableDeclarator")), !B(ye))
533
+ var c = F();
534
+ if (c.id = re(), Y && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Un) ? K(!0, l) : null, a.fa.push(j(c, "VariableDeclarator")), !U(ye))
565
535
  break;
566
536
  }
567
537
  }
568
538
  function K(a, l) {
569
539
  var c = yt(l);
570
540
  if (!a && T === ye) {
571
- for (a = me(c), a.xb = [c]; B(ye); )
541
+ for (a = me(c), a.xb = [c]; U(ye); )
572
542
  a.xb.push(yt(l));
573
543
  return j(a, "SequenceExpression");
574
544
  }
@@ -576,7 +546,7 @@ var M, wo = function(e) {
576
546
  }
577
547
  function yt(a) {
578
548
  var l = vt(xt(), -1, a);
579
- if (B(Fn)) {
549
+ if (U(Bn)) {
580
550
  var c = me(l);
581
551
  c.test = l, c.da = K(!0), V(Le), c.alternate = K(!0, a), l = j(c, "ConditionalExpression");
582
552
  }
@@ -592,35 +562,35 @@ var M, wo = function(e) {
592
562
  }
593
563
  function xt() {
594
564
  if (T.prefix) {
595
- var a = U(), l = T.$b;
596
- return a.operator = Q, Ue = a.prefix = !0, m(), a.K = xt(), l ? Qe(a.K) : Y && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), j(a, l ? "UpdateExpression" : "UnaryExpression");
565
+ var a = F(), l = T.$b;
566
+ return a.operator = Q, Fe = a.prefix = !0, m(), a.K = xt(), l ? Qe(a.K) : Y && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), j(a, l ? "UpdateExpression" : "UnaryExpression");
597
567
  }
598
- for (l = Fe(et()); T.cc && !Ze(); )
568
+ for (l = Be(et()); T.cc && !Ze(); )
599
569
  a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = j(a, "UpdateExpression");
600
570
  return l;
601
571
  }
602
- function Fe(a, l) {
603
- if (B(Mn)) {
572
+ function Be(a, l) {
573
+ if (U(Mn)) {
604
574
  var c = me(a);
605
- return c.object = a, c.Wa = re(!0), c.bb = !1, Fe(j(c, "MemberExpression"), l);
575
+ return c.object = a, c.Wa = re(!0), c.bb = !1, Be(j(c, "MemberExpression"), l);
606
576
  }
607
- return B(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Ft), Fe(j(c, "MemberExpression"), l)) : !l && B(ie) ? (c = me(a), c.callee = a, c.arguments = bt(te, !1), Fe(j(c, "CallExpression"), l)) : a;
577
+ return U(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Bt), Be(j(c, "MemberExpression"), l)) : !l && U(ie) ? (c = me(a), c.callee = a, c.arguments = wt(te, !1), Be(j(c, "CallExpression"), l)) : a;
608
578
  }
609
579
  function et() {
610
580
  switch (T) {
611
581
  case On:
612
- var a = U();
582
+ var a = F();
613
583
  return m(), j(a, "ThisExpression");
614
584
  case Ee:
615
585
  return re();
616
586
  case Ve:
617
587
  case tt:
618
588
  case mn:
619
- return a = U(), a.value = Q, a.raw = x.slice($, Ce), m(), j(a, "Literal");
589
+ return a = F(), a.value = Q, a.raw = x.slice($, Ce), m(), j(a, "Literal");
620
590
  case Rn:
621
591
  case Pn:
622
592
  case Nn:
623
- return a = U(), a.value = T.$a, a.raw = T.l, m(), j(a, "Literal");
593
+ return a = F(), a.value = T.$a, a.raw = T.l, m(), j(a, "Literal");
624
594
  case ie:
625
595
  a = kt;
626
596
  var l = $;
@@ -628,47 +598,47 @@ var M, wo = function(e) {
628
598
  var c = K();
629
599
  return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Ct), O.Xa && (c.j = [l, Ce]), V(te), c;
630
600
  case Mt:
631
- return a = U(), m(), a.elements = bt(Ft, !0, !0), j(a, "ArrayExpression");
601
+ return a = F(), m(), a.elements = wt(Bt, !0, !0), j(a, "ArrayExpression");
632
602
  case _e:
633
- for (a = U(), l = !0, c = !1, a.h = [], m(); !B(Ie); ) {
603
+ for (a = F(), l = !0, c = !1, a.h = [], m(); !U(Ie); ) {
634
604
  if (l)
635
605
  l = !1;
636
- else if (V(ye), O.sb && B(Ie))
606
+ else if (V(ye), O.sb && U(Ie))
637
607
  break;
638
608
  var h = {
639
609
  key: T === Ve || T === tt ? et() : re(!0)
640
610
  }, A = !1;
641
- if (B(Le)) {
611
+ if (U(Le)) {
642
612
  h.value = K(!0);
643
613
  var D = h.kind = "init";
644
614
  } else
645
- h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? ne() : (A = c = !0, D = h.kind = h.key.name, h.key = T === Ve || T === tt ? et() : re(!0), T !== ie && ne(), h.value = wt(U(), !1));
615
+ h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? ne() : (A = c = !0, D = h.kind = h.key.name, h.key = T === Ve || T === tt ? et() : re(!0), T !== ie && ne(), h.value = bt(F(), !1));
646
616
  if (h.key.type === "Identifier" && (Y || c))
647
617
  for (var X = 0; X < a.h.length; ++X) {
648
618
  var Ae = a.h[X];
649
619
  if (Ae.key.name === h.key.name) {
650
- var Bt = D === Ae.kind || A && Ae.kind === "init" || D === "init" && (Ae.kind === "get" || Ae.kind === "set");
651
- Bt && !Y && D === "init" && Ae.kind === "init" && (Bt = !1), Bt && r(h.key.start, "Redefinition of property");
620
+ var Ut = D === Ae.kind || A && Ae.kind === "init" || D === "init" && (Ae.kind === "get" || Ae.kind === "set");
621
+ Ut && !Y && D === "init" && Ae.kind === "init" && (Ut = !1), Ut && r(h.key.start, "Redefinition of property");
652
622
  }
653
623
  }
654
624
  a.h.push(h);
655
625
  }
656
626
  return j(a, "ObjectExpression");
657
627
  case Ot:
658
- return a = U(), m(), wt(a, !1);
628
+ return a = F(), m(), bt(a, !1);
659
629
  case jn:
660
- return a = U(), m(), a.callee = Fe(et(), !0), a.arguments = B(ie) ? bt(te, !1) : Br, j(a, "NewExpression");
630
+ return a = F(), m(), a.callee = Be(et(), !0), a.arguments = U(ie) ? wt(te, !1) : Ur, j(a, "NewExpression");
661
631
  }
662
632
  ne();
663
633
  }
664
- function wt(a, l) {
634
+ function bt(a, l) {
665
635
  T === Ee ? a.id = re() : l ? ne() : a.id = null, a.oa = [];
666
636
  var c = !0;
667
- for (V(ie); !B(te); )
637
+ for (V(ie); !U(te); )
668
638
  c ? c = !1 : V(ye), a.oa.push(re());
669
- c = Be;
639
+ c = Ue;
670
640
  var h = _;
671
- if (Be = !0, _ = [], a.body = Me(!0), Be = c, _ = h, Y || a.body.body.length && mt(a.body.body[0])) {
641
+ if (Ue = !0, _ = [], a.body = Me(!0), Ue = c, _ = h, Y || a.body.body.length && mt(a.body.body[0])) {
672
642
  for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
673
643
  if (h = 0 > c ? a.id : a.oa[c], ($n(h.name) || rt(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
674
644
  for (var A = 0; A < c; ++A)
@@ -676,19 +646,19 @@ var M, wo = function(e) {
676
646
  }
677
647
  return j(a, l ? "FunctionDeclaration" : "FunctionExpression");
678
648
  }
679
- function bt(a, l, c) {
680
- for (var h = [], A = !0; !B(a); ) {
649
+ function wt(a, l, c) {
650
+ for (var h = [], A = !0; !U(a); ) {
681
651
  if (A)
682
652
  A = !1;
683
- else if (V(ye), l && O.sb && B(a))
653
+ else if (V(ye), l && O.sb && U(a))
684
654
  break;
685
655
  h.push(c && T === ye ? null : K(!0));
686
656
  }
687
657
  return h;
688
658
  }
689
659
  function re(a) {
690
- var l = U();
691
- return a && O.yb === "everywhere" && (a = !1), T === Ee ? (!a && (O.yb && Jr(Q) || Y && $n(Q)) && x.slice($, Ce).indexOf("\\") === -1 && r($, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && T.l ? l.name = T.l : ne(), Ue = !1, m(), j(l, "Identifier");
660
+ var l = F();
661
+ return a && O.yb === "everywhere" && (a = !1), T === Ee ? (!a && (O.yb && Jr(Q) || Y && $n(Q)) && x.slice($, Ce).indexOf("\\") === -1 && r($, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && T.l ? l.name = T.l : ne(), Fe = !1, m(), j(l, "Identifier");
692
662
  }
693
663
  e.version = "0.5.0";
694
664
  var O, x = "", ke, St;
@@ -696,7 +666,7 @@ var M, wo = function(e) {
696
666
  x = String(a), ke = x.length, O = l || {};
697
667
  for (var c in dn)
698
668
  Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
699
- for (St = O.sourceFile, be = 1, u = oe = 0, Ue = !0, p(), c = O.dc, Et = ge = u, O.C && (It = new i()), Be = Y = !1, _ = [], v(), a = c || U(), l = !0, c || (a.body = []); T !== Tt; )
669
+ for (St = O.sourceFile, we = 1, f = oe = 0, Fe = !0, p(), c = O.dc, Et = ge = f, O.C && (It = new i()), Ue = Y = !1, _ = [], v(), a = c || F(), l = !0, c || (a.body = []); T !== Tt; )
700
670
  c = ee(), a.body.push(c), l && mt(c) && he(!0), l = !1;
701
671
  return j(a, "Program");
702
672
  };
@@ -711,7 +681,7 @@ var M, wo = function(e) {
711
681
  dc: null,
712
682
  sourceFile: null,
713
683
  vb: null
714
- }, u = 0, $ = 0, Ce = 0, kt, Ct, T, Q, Ue, be, oe, Et = 0, ge = 0, It, Be, _, Y, Br = [], Ve = {
684
+ }, f = 0, $ = 0, Ce = 0, kt, Ct, T, Q, Fe, we, oe, Et = 0, ge = 0, It, Ue, _, Y, Ur = [], Ve = {
715
685
  type: "num"
716
686
  }, mn = {
717
687
  type: "regexp"
@@ -734,10 +704,10 @@ var M, wo = function(e) {
734
704
  l: "debugger"
735
705
  }, xn = {
736
706
  l: "default"
737
- }, wn = {
707
+ }, bn = {
738
708
  l: "do",
739
709
  W: !0
740
- }, bn = {
710
+ }, wn = {
741
711
  l: "else",
742
712
  m: !0
743
713
  }, Sn = {
@@ -791,8 +761,8 @@ var M, wo = function(e) {
791
761
  continue: yn,
792
762
  debugger: vn,
793
763
  default: xn,
794
- do: wn,
795
- else: bn,
764
+ do: bn,
765
+ else: wn,
796
766
  finally: Sn,
797
767
  for: kn,
798
768
  function: Ot,
@@ -833,7 +803,7 @@ var M, wo = function(e) {
833
803
  }, Mt = {
834
804
  type: "[",
835
805
  m: !0
836
- }, Ft = {
806
+ }, Bt = {
837
807
  type: "]"
838
808
  }, _e = {
839
809
  type: "{",
@@ -856,13 +826,13 @@ var M, wo = function(e) {
856
826
  m: !0
857
827
  }, Mn = {
858
828
  type: "."
859
- }, Fn = {
829
+ }, Bn = {
860
830
  type: "?",
861
831
  m: !0
862
- }, Un = {
832
+ }, Fn = {
863
833
  L: 10,
864
834
  m: !0
865
- }, Bn = {
835
+ }, Un = {
866
836
  Cb: !0,
867
837
  m: !0
868
838
  }, Se = {
@@ -906,7 +876,7 @@ var M, wo = function(e) {
906
876
  }, Xr = {
907
877
  L: 10,
908
878
  m: !0
909
- }, Jr = o("class enum extends super const export import"), $n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), zr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Yr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Dn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ut = {
879
+ }, Jr = o("class enum extends super const export import"), $n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), zr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Yr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Dn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
910
880
  kind: "loop"
911
881
  }, Zr = {
912
882
  kind: "switch"
@@ -929,16 +899,16 @@ function d(e, t) {
929
899
  for (s in this)
930
900
  typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
931
901
  this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra = Oe(this.ba.join(`
932
- `), "polyfills"), this.ba = void 0, ft(this.ra), i = new k(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new k(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
902
+ `), "polyfills"), this.ba = void 0, ut(this.ra), i = new k(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new k(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
933
903
  }
934
- var Kn = {
904
+ var Hn = {
935
905
  C: !0,
936
906
  kc: 5
937
907
  }, Jt = {
938
908
  configurable: !0,
939
909
  enumerable: !0,
940
910
  writable: !1
941
- }, w = {
911
+ }, b = {
942
912
  configurable: !0,
943
913
  enumerable: !1,
944
914
  writable: !0
@@ -950,11 +920,11 @@ var Kn = {
950
920
  configurable: !1,
951
921
  enumerable: !1,
952
922
  writable: !1
953
- }, Gn = {
923
+ }, Kn = {
954
924
  configurable: !1,
955
925
  enumerable: !0,
956
926
  writable: !0
957
- }, dr = {
927
+ }, pr = {
958
928
  STEP_ERROR: !0
959
929
  }, Pe = {
960
930
  SCOPE_REFERENCE: !0
@@ -962,7 +932,7 @@ var Kn = {
962
932
  VALUE_IN_DESCRIPTOR: !0
963
933
  }, je = {
964
934
  REGEXP_TIMEOUT: !0
965
- }, Xn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, bo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
935
+ }, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, So = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
966
936
  function zt(e) {
967
937
  var t = e >>> 0;
968
938
  return t === Number(e) ? t : NaN;
@@ -971,12 +941,12 @@ function Xe(e) {
971
941
  var t = e >>> 0;
972
942
  return String(t) === String(e) && t !== 4294967295 ? t : NaN;
973
943
  }
974
- function ft(e, t, n) {
944
+ function ut(e, t, n) {
975
945
  t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
976
946
  for (var r in e)
977
947
  if (r !== "loc" && e.hasOwnProperty(r)) {
978
948
  var o = e[r];
979
- o && typeof o == "object" && ft(o, t, n);
949
+ o && typeof o == "object" && ut(o, t, n);
980
950
  }
981
951
  }
982
952
  d.prototype.REGEXP_MODE = 2;
@@ -989,8 +959,8 @@ M.Kb = 0;
989
959
  M.ic = 0;
990
960
  function Oe(e, t) {
991
961
  var n = {}, r;
992
- for (r in Kn)
993
- n[r] = Kn[r];
962
+ for (r in Hn)
963
+ n[r] = Hn[r];
994
964
  return n.sourceFile = t, ve.j.parse(e, n);
995
965
  }
996
966
  M.Jb = function(e) {
@@ -1013,7 +983,7 @@ M.lb = function() {
1013
983
  if (n = this.ca[0], !n || n.time > Date.now())
1014
984
  n = null;
1015
985
  else {
1016
- this.ca.shift(), 0 <= n.interval && yr(this, n, n.interval);
986
+ this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
1017
987
  var r = new k(n.node, n.scope);
1018
988
  n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
1019
989
  }
@@ -1026,7 +996,7 @@ M.lb = function() {
1026
996
  try {
1027
997
  var i = this.rb[r.type](e, n, r);
1028
998
  } catch (s) {
1029
- if (s !== dr)
999
+ if (s !== pr)
1030
1000
  throw this.value !== s && (this.value = void 0), s;
1031
1001
  } finally {
1032
1002
  Ge = o;
@@ -1044,40 +1014,40 @@ M.Eb = function() {
1044
1014
  ;
1045
1015
  return this.za;
1046
1016
  };
1047
- function So(e, t) {
1048
- e.g(t, "NaN", NaN, $e), e.g(t, "Infinity", 1 / 0, $e), e.g(t, "undefined", void 0, $e), e.g(t, "window", t, Jt), e.g(t, "this", t, $e), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), ko(e, t), Co(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), Eo(e, t), Io(e, t), To(e, t), Ao(e, t), jo(e, t), Oo(e, t), Ro(e, t), Po(e, t), No(e, t);
1017
+ function ko(e, t) {
1018
+ e.g(t, "NaN", NaN, $e), e.g(t, "Infinity", 1 / 0, $e), e.g(t, "undefined", void 0, $e), e.g(t, "window", t, Jt), e.g(t, "this", t, $e), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Co(e, t), Eo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, b), Io(e, t), To(e, t), Ao(e, t), jo(e, t), Oo(e, t), Ro(e, t), Po(e, t), No(e, t), Mo(e, t);
1049
1019
  var n = e.i(function() {
1050
1020
  throw EvalError("Can't happen");
1051
1021
  }, !1);
1052
- n.eval = !0, e.g(t, "eval", n, w), e.g(t, "parseInt", e.i(parseInt, !1), w), e.g(t, "parseFloat", e.i(parseFloat, !1), w), e.g(t, "isNaN", e.i(isNaN, !1), w), e.g(t, "isFinite", e.i(isFinite, !1), w);
1022
+ n.eval = !0, e.g(t, "eval", n, b), e.g(t, "parseInt", e.i(parseInt, !1), b), e.g(t, "parseFloat", e.i(parseFloat, !1), b), e.g(t, "isNaN", e.i(isNaN, !1), b), e.g(t, "isFinite", e.i(isFinite, !1), b);
1053
1023
  for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
1054
1024
  n = function(i) {
1055
1025
  return function(s) {
1056
1026
  try {
1057
1027
  return i(s);
1058
- } catch (f) {
1059
- C(e, e.Gb, f.message);
1028
+ } catch (u) {
1029
+ C(e, e.Gb, u.message);
1060
1030
  }
1061
1031
  };
1062
- }(r[o][0]), e.g(t, r[o][1], e.i(n, !1), w);
1032
+ }(r[o][0]), e.g(t, r[o][1], e.i(n, !1), b);
1063
1033
  n = function(i) {
1064
- return Jn(e, !1, arguments);
1065
- }, e.g(t, "setTimeout", e.i(n, !1), w), n = function(i) {
1066
- return Jn(e, !0, arguments);
1067
- }, e.g(t, "setInterval", e.i(n, !1), w), n = function(i) {
1068
- zn(e, i);
1069
- }, e.g(t, "clearTimeout", e.i(n, !1), w), n = function(i) {
1070
- zn(e, i);
1071
- }, e.g(t, "clearInterval", e.i(n, !1), w), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1034
+ return Xn(e, !1, arguments);
1035
+ }, e.g(t, "setTimeout", e.i(n, !1), b), n = function(i) {
1036
+ return Xn(e, !0, arguments);
1037
+ }, e.g(t, "setInterval", e.i(n, !1), b), n = function(i) {
1038
+ Jn(e, i);
1039
+ }, e.g(t, "clearTimeout", e.i(n, !1), b), n = function(i) {
1040
+ Jn(e, i);
1041
+ }, e.g(t, "clearInterval", e.i(n, !1), b), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1072
1042
  }
1073
1043
  M.Wb = 0;
1074
- function ko(e, t) {
1044
+ function Co(e, t) {
1075
1045
  var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
1076
1046
  var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1077
1047
  if (s) {
1078
1048
  s = s.split(/\s*,\s*/);
1079
- for (var f = 0; f < s.length; f++) {
1080
- var p = s[f];
1049
+ for (var u = 0; u < s.length; u++) {
1050
+ var p = s[u];
1081
1051
  n.test(p) || C(e, e.T, "Invalid function argument: " + p);
1082
1052
  }
1083
1053
  s = s.join(", ");
@@ -1089,10 +1059,10 @@ function ko(e, t) {
1089
1059
  }
1090
1060
  return g.body.length !== 1 && C(e, e.T, "Invalid code in function body"), Zt(e, g.body[0].la, e.N, "anonymous");
1091
1061
  };
1092
- e.O = e.i(r, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
1062
+ e.O = e.i(r, !0), e.g(t, "Function", e.O, b), e.g(e.O, "prototype", e.Z, b), e.g(e.Z, "constructor", e.O, b), e.Z.Ta = function() {
1093
1063
  }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function", r = function(o, i) {
1094
1064
  var s = e.o[e.o.length - 1];
1095
- s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = mr(e, i) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1065
+ s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = hr(e, i) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1096
1066
  }, W(e, e.O, "apply", r), r = function(o) {
1097
1067
  var i = e.o[e.o.length - 1];
1098
1068
  i.U = this, i.B = o, i.F = [];
@@ -1101,11 +1071,11 @@ function ko(e, t) {
1101
1071
  i.eb = !1;
1102
1072
  }, W(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1103
1073
  return String(this);
1104
- }, W(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), w), r = function() {
1074
+ }, W(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), b), r = function() {
1105
1075
  return this.valueOf();
1106
- }, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), w);
1076
+ }, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), b);
1107
1077
  }
1108
- function Co(e, t) {
1078
+ function Eo(e, t) {
1109
1079
  function n(o) {
1110
1080
  o != null || C(e, e.j, "Cannot convert '" + o + "' to object");
1111
1081
  }
@@ -1118,26 +1088,26 @@ function Co(e, t) {
1118
1088
  }
1119
1089
  return o;
1120
1090
  };
1121
- e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), r = function(o) {
1091
+ e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, b), e.g(e.M, "constructor", e.v, b), e.g(t, "Object", e.v, b), r = function(o) {
1122
1092
  return n(o), se(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
1123
- }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), w), r = function(o) {
1093
+ }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), b), r = function(o) {
1124
1094
  return n(o), o instanceof R && (o = o.h), se(e, Object.keys(o));
1125
- }, e.g(e.v, "keys", e.i(r, !1), w), r = function(o) {
1095
+ }, e.g(e.v, "keys", e.i(r, !1), b), r = function(o) {
1126
1096
  return o === null ? e.s(null) : (o instanceof R || C(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1127
- }, e.g(e.v, "create", e.i(r, !1), w), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
1097
+ }, e.g(e.v, "create", e.i(r, !1), b), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
1128
1098
  return i = String(i), o instanceof R || C(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || C(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || C(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
1129
- }, e.g(e.v, "defineProperty", e.i(r, !1), w), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
1099
+ }, e.g(e.v, "defineProperty", e.i(r, !1), b), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
1130
1100
  if (o instanceof R || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
1131
- var s = Object.getOwnPropertyDescriptor(o.h, i), f = o.V[i];
1132
- return o = o.Y[i], i = e.s(e.M), f || o ? (e.g(i, "get", f), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
1101
+ var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
1102
+ return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
1133
1103
  }
1134
- }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), w), r = function(o) {
1104
+ }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), b), r = function(o) {
1135
1105
  return n(o), ce(e, o);
1136
- }, e.g(e.v, "getPrototypeOf", e.i(r, !1), w), r = function(o) {
1106
+ }, e.g(e.v, "getPrototypeOf", e.i(r, !1), b), r = function(o) {
1137
1107
  return !!o && !o.preventExtensions;
1138
- }, e.g(e.v, "isExtensible", e.i(r, !1), w), r = function(o) {
1108
+ }, e.g(e.v, "isExtensible", e.i(r, !1), b), r = function(o) {
1139
1109
  return o instanceof R && (o.preventExtensions = !0), o;
1140
- }, e.g(e.v, "preventExtensions", e.i(r, !1), w), W(e, e.v, "toString", R.prototype.toString), W(e, e.v, "toLocaleString", R.prototype.toString), W(e, e.v, "valueOf", R.prototype.valueOf), r = function(o) {
1110
+ }, e.g(e.v, "preventExtensions", e.i(r, !1), b), W(e, e.v, "toString", R.prototype.toString), W(e, e.v, "toLocaleString", R.prototype.toString), W(e, e.v, "valueOf", R.prototype.valueOf), r = function(o) {
1141
1111
  return n(this), this instanceof R ? String(o) in this.h : this.hasOwnProperty(o);
1142
1112
  }, W(e, e.v, "hasOwnProperty", r), r = function(o) {
1143
1113
  return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
@@ -1150,7 +1120,7 @@ function Co(e, t) {
1150
1120
  }
1151
1121
  }, W(e, e.v, "isPrototypeOf", r);
1152
1122
  }
1153
- function Eo(e, t) {
1123
+ function Io(e, t) {
1154
1124
  var n = function(r) {
1155
1125
  var o = fe(e) ? this : Re(e), i = arguments[0];
1156
1126
  if (arguments.length === 1 && typeof i == "number")
@@ -1162,19 +1132,19 @@ function Eo(e, t) {
1162
1132
  }
1163
1133
  return o;
1164
1134
  };
1165
- e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, w), n = function(r) {
1135
+ e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, b), n = function(r) {
1166
1136
  return r && r.H === "Array";
1167
- }, e.g(e.qa, "isArray", e.i(n, !1), w), e.g(e.La, "length", 0, {
1137
+ }, e.g(e.qa, "isArray", e.i(n, !1), b), e.g(e.La, "length", 0, {
1168
1138
  configurable: !1,
1169
1139
  enumerable: !1,
1170
1140
  writable: !0
1171
1141
  }), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1172
1142
  }
1173
- function Io(e, t) {
1143
+ function To(e, t) {
1174
1144
  var n = function(r) {
1175
1145
  return r = arguments.length ? ve.String(r) : "", fe(e) ? (this.data = r, this) : r;
1176
1146
  };
1177
- for (e.J = e.i(n, !0), e.g(t, "String", e.J, w), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), w), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1147
+ for (e.J = e.i(n, !0), e.g(t, "String", e.J, b), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), b), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1178
1148
  W(e, e.J, t[n], String.prototype[t[n]]);
1179
1149
  n = function(r, o, i) {
1180
1150
  o = e.R(o), i = e.R(i);
@@ -1193,10 +1163,10 @@ function Io(e, t) {
1193
1163
  limit: o
1194
1164
  }, r, i), r !== je && i(se(e, r));
1195
1165
  else {
1196
- var f = e.ha(), p = He(e, r, f, i);
1197
- f.onmessage = function(g) {
1166
+ var u = e.ha(), p = He(e, r, u, i);
1167
+ u.onmessage = function(g) {
1198
1168
  clearTimeout(p), i(se(e, g.data));
1199
- }, f.postMessage(["split", s, r, o]);
1169
+ }, u.postMessage(["split", s, r, o]);
1200
1170
  }
1201
1171
  return;
1202
1172
  }
@@ -1210,9 +1180,9 @@ function Io(e, t) {
1210
1180
  regexp: r
1211
1181
  }, r, o), r !== je && o(r && se(e, r));
1212
1182
  else {
1213
- var s = e.ha(), f = He(e, r, s, o);
1183
+ var s = e.ha(), u = He(e, r, s, o);
1214
1184
  s.onmessage = function(p) {
1215
- clearTimeout(f), o(p.data && se(e, p.data));
1185
+ clearTimeout(u), o(p.data && se(e, p.data));
1216
1186
  }, s.postMessage(["match", i, r]);
1217
1187
  }
1218
1188
  else
@@ -1226,9 +1196,9 @@ function Io(e, t) {
1226
1196
  regexp: r
1227
1197
  }, r, o), r !== je && o(r);
1228
1198
  else {
1229
- var s = e.ha(), f = He(e, r, s, o);
1199
+ var s = e.ha(), u = He(e, r, s, o);
1230
1200
  s.onmessage = function(p) {
1231
- clearTimeout(f), o(p.data);
1201
+ clearTimeout(u), o(p.data);
1232
1202
  }, s.postMessage(["search", i, r]);
1233
1203
  }
1234
1204
  else
@@ -1243,26 +1213,26 @@ function Io(e, t) {
1243
1213
  newSubstr: o
1244
1214
  }, r, i), r !== je && i(r);
1245
1215
  else {
1246
- var f = e.ha(), p = He(e, r, f, i);
1247
- f.onmessage = function(g) {
1216
+ var u = e.ha(), p = He(e, r, u, i);
1217
+ u.onmessage = function(g) {
1248
1218
  clearTimeout(p), i(g.data);
1249
- }, f.postMessage(["replace", s, r, o]);
1219
+ }, u.postMessage(["replace", s, r, o]);
1250
1220
  }
1251
1221
  return;
1252
1222
  }
1253
1223
  i(s.replace(r, o));
1254
1224
  }, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1255
1225
  }
1256
- function To(e, t) {
1226
+ function Ao(e, t) {
1257
1227
  e.mb = e.i(function(n) {
1258
1228
  return n = ve.Boolean(n), fe(e) ? (this.data = n, this) : n;
1259
- }, !0), e.g(t, "Boolean", e.mb, w);
1229
+ }, !0), e.g(t, "Boolean", e.mb, b);
1260
1230
  }
1261
- function Ao(e, t) {
1231
+ function jo(e, t) {
1262
1232
  var n = function(r) {
1263
1233
  return r = arguments.length ? ve.Number(r) : 0, fe(e) ? (this.data = r, this) : r;
1264
1234
  };
1265
- for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1235
+ for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, b), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1266
1236
  e.g(e.aa, t[n], Number[t[n]], $e);
1267
1237
  n = function(r) {
1268
1238
  try {
@@ -1297,26 +1267,26 @@ function Ao(e, t) {
1297
1267
  }
1298
1268
  }, W(e, e.aa, "toLocaleString", n);
1299
1269
  }
1300
- function jo(e, t) {
1270
+ function Oo(e, t) {
1301
1271
  var n = function(o, i) {
1302
1272
  if (!fe(e))
1303
1273
  return ve.Date();
1304
1274
  var s = [null].concat(Array.from(arguments));
1305
1275
  return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
1306
1276
  };
1307
- e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, w), e.g(e.$, "now", e.i(Date.now, !1), w), e.g(e.$, "parse", e.i(Date.parse, !1), w), e.g(e.$, "UTC", e.i(Date.UTC, !1), w), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1277
+ e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, b), e.g(e.$, "now", e.i(Date.now, !1), b), e.g(e.$, "parse", e.i(Date.parse, !1), b), e.g(e.$, "UTC", e.i(Date.UTC, !1), b), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1308
1278
  for (var r = 0; r < t.length; r++)
1309
1279
  n = function(o) {
1310
1280
  return function(i) {
1311
1281
  var s = this.data;
1312
1282
  s instanceof Date || C(e, e.j, o + " not called on a Date");
1313
- for (var f = [], p = 0; p < arguments.length; p++)
1314
- f[p] = e.R(arguments[p]);
1315
- return s[o].apply(s, f);
1283
+ for (var u = [], p = 0; p < arguments.length; p++)
1284
+ u[p] = e.R(arguments[p]);
1285
+ return s[o].apply(s, u);
1316
1286
  };
1317
1287
  }(t[r]), W(e, e.$, t[r], n);
1318
1288
  }
1319
- function Oo(e, t) {
1289
+ function Ro(e, t) {
1320
1290
  var n = function(r, o) {
1321
1291
  if (fe(e))
1322
1292
  var i = this;
@@ -1328,16 +1298,16 @@ function Oo(e, t) {
1328
1298
  r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || C(e, e.T, "Invalid regexp flag: " + o);
1329
1299
  try {
1330
1300
  var s = new ve.RegExp(r, o);
1331
- } catch (f) {
1332
- C(e, e.T, f.message);
1301
+ } catch (u) {
1302
+ C(e, e.T, u.message);
1333
1303
  }
1334
1304
  return Yt(e, i, s), i;
1335
1305
  };
1336
- e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1306
+ e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, b), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1337
1307
  function i(v) {
1338
1308
  if (v) {
1339
- var b = se(e, v);
1340
- return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
1309
+ var w = se(e, v);
1310
+ return e.g(w, "index", v.index), e.g(w, "input", v.input), w;
1341
1311
  }
1342
1312
  return null;
1343
1313
  }
@@ -1349,40 +1319,40 @@ function Oo(e, t) {
1349
1319
  regexp: s
1350
1320
  }, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
1351
1321
  else {
1352
- var f = e.ha(), p = He(e, s, f, o), g = this;
1353
- f.onmessage = function(v) {
1322
+ var u = e.ha(), p = He(e, s, u, o), g = this;
1323
+ u.onmessage = function(v) {
1354
1324
  clearTimeout(p), e.g(g, "lastIndex", v.data[1]), o(i(v.data[0]));
1355
- }, f.postMessage(["exec", s, s.lastIndex, r]);
1325
+ }, u.postMessage(["exec", s, s.lastIndex, r]);
1356
1326
  }
1357
1327
  else
1358
1328
  r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
1359
1329
  }, Ke(e, e.I, "exec", n);
1360
1330
  }
1361
- function Ro(e, t) {
1331
+ function Po(e, t) {
1362
1332
  function n(r) {
1363
1333
  var o = e.i(function(i) {
1364
1334
  var s = fe(e) ? this : e.Aa(o);
1365
1335
  return Dt(e, s, i), s;
1366
1336
  }, !0);
1367
- return e.g(o, "prototype", e.Aa(e.D), w), e.g(o.h.prototype, "name", r, w), e.g(t, r, o, w), o;
1337
+ return e.g(o, "prototype", e.Aa(e.D), b), e.g(o.h.prototype, "name", r, b), e.g(t, r, o, b), o;
1368
1338
  }
1369
1339
  e.D = e.i(function(r) {
1370
1340
  var o = fe(e) ? this : e.Aa(e.D);
1371
1341
  return Dt(e, o, r), o;
1372
- }, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1342
+ }, !0), e.g(t, "Error", e.D, b), e.g(e.D.h.prototype, "message", "", b), e.g(e.D.h.prototype, "name", "Error", b), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1373
1343
  }
1374
- function Po(e, t) {
1344
+ function No(e, t) {
1375
1345
  var n = e.s(e.M);
1376
- e.g(t, "Math", n, w);
1346
+ e.g(t, "Math", n, b);
1377
1347
  var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1378
1348
  for (t = 0; t < r.length; t++)
1379
1349
  e.g(n, r[t], Math[r[t]], z);
1380
1350
  for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
1381
- e.g(n, r[t], e.i(Math[r[t]], !1), w);
1351
+ e.g(n, r[t], e.i(Math[r[t]], !1), b);
1382
1352
  }
1383
- function No(e, t) {
1353
+ function Mo(e, t) {
1384
1354
  var n = e.s(e.M);
1385
- e.g(t, "JSON", n, w), t = function(r) {
1355
+ e.g(t, "JSON", n, b), t = function(r) {
1386
1356
  try {
1387
1357
  var o = JSON.parse(String(r));
1388
1358
  } catch (i) {
@@ -1390,13 +1360,13 @@ function No(e, t) {
1390
1360
  }
1391
1361
  return e.Ia(o);
1392
1362
  }, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
1393
- o && o.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = mr(e, o), o = o.filter(function(f) {
1394
- return typeof f == "string" || typeof f == "number";
1363
+ o && o.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = hr(e, o), o = o.filter(function(u) {
1364
+ return typeof u == "string" || typeof u == "number";
1395
1365
  })) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
1396
1366
  try {
1397
1367
  var s = JSON.stringify(r, o, i);
1398
- } catch (f) {
1399
- C(e, e.j, f.message);
1368
+ } catch (u) {
1369
+ C(e, e.j, u.message);
1400
1370
  }
1401
1371
  return s;
1402
1372
  }, e.g(n, "stringify", e.i(t, !1));
@@ -1414,10 +1384,10 @@ function H(e, t, n) {
1414
1384
  return !1;
1415
1385
  }
1416
1386
  function Yt(e, t, n) {
1417
- t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, w), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
1387
+ t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, b), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
1418
1388
  }
1419
1389
  function Dt(e, t, n) {
1420
- n && e.g(t, "message", String(n), w), n = [];
1390
+ n && e.g(t, "message", String(n), b), n = [];
1421
1391
  for (var r = e.o.length - 1; 0 <= r; r--) {
1422
1392
  var o = e.o[r], i = o.node;
1423
1393
  i.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !i.X || n.length && i.type !== "CallExpression" || n.push({
@@ -1431,11 +1401,11 @@ function Dt(e, t, n) {
1431
1401
  `) : i + (" at " + s + `
1432
1402
  `);
1433
1403
  }
1434
- e.g(t, "stack", i.trim(), w);
1404
+ e.g(t, "stack", i.trim(), b);
1435
1405
  }
1436
1406
  M.ha = function() {
1437
1407
  var e = this.ha.Mb;
1438
- return e || (e = new Blob([bo.join(`
1408
+ return e || (e = new Blob([So.join(`
1439
1409
  `)], {
1440
1410
  type: "application/javascript"
1441
1411
  }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
@@ -1497,7 +1467,7 @@ function Re(e) {
1497
1467
  }
1498
1468
  function qt(e, t, n) {
1499
1469
  var r = e.s(e.Z);
1500
- return n ? (n = e.s(e.M), e.g(r, "prototype", n, w), e.g(n, "constructor", r, w)) : r.Ab = !0, e.g(r, "length", t, z), r.H = "Function", r;
1470
+ return n ? (n = e.s(e.M), e.g(r, "prototype", n, b), e.g(n, "constructor", r, b)) : r.Ab = !0, e.g(r, "length", t, z), r.H = "Function", r;
1501
1471
  }
1502
1472
  function Zt(e, t, n, r) {
1503
1473
  var o = qt(e, t.oa.length, !0);
@@ -1560,7 +1530,7 @@ M.R = function(e, t) {
1560
1530
  if (t.hb.push(e), H(this, e, this.qa)) {
1561
1531
  n = [], t.Sa.push(n);
1562
1532
  for (var r = this.G(e, "length"), o = 0; o < r; o++)
1563
- pt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
1533
+ ft(this, e, o) && (n[o] = this.R(this.G(e, o), t));
1564
1534
  } else
1565
1535
  for (r in n = {}, t.Sa.push(n), e.h)
1566
1536
  o = this.R(e.h[r], t), Object.defineProperty(n, r, {
@@ -1576,7 +1546,7 @@ function se(e, t) {
1576
1546
  e.g(n, r[o], t[r[o]]);
1577
1547
  return n;
1578
1548
  }
1579
- function mr(e, t) {
1549
+ function hr(e, t) {
1580
1550
  var n = [], r;
1581
1551
  for (r in t.h)
1582
1552
  n[r] = e.G(t, r);
@@ -1611,7 +1581,7 @@ M.G = function(e, t) {
1611
1581
  return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
1612
1582
  while (e = ce(this, e));
1613
1583
  };
1614
- function pt(e, t, n) {
1584
+ function ft(e, t, n) {
1615
1585
  if (!(t instanceof R))
1616
1586
  throw TypeError("Primitive data type has no properties");
1617
1587
  if (n = String(n), n === "length" && H(e, t, e.J))
@@ -1696,10 +1666,10 @@ M.g.bc = function() {
1696
1666
  throw Error("Placeholder setter");
1697
1667
  };
1698
1668
  function W(e, t, n, r) {
1699
- e.g(t.h.prototype, n, e.i(r, !1), w);
1669
+ e.g(t.h.prototype, n, e.i(r, !1), b);
1700
1670
  }
1701
1671
  function Ke(e, t, n, r) {
1702
- e.g(t.h.prototype, n, e.ub(r), w);
1672
+ e.g(t.h.prototype, n, e.ub(r), b);
1703
1673
  }
1704
1674
  function Qt(e) {
1705
1675
  if (e = e.o[e.o.length - 1].scope, !e)
@@ -1714,12 +1684,12 @@ function Wt(e, t, n) {
1714
1684
  var o = t.body && t.body[0];
1715
1685
  o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
1716
1686
  }
1717
- return o = e.s(null), r = new vr(n, r, o), n || So(e, r.object), ze(e, t, r), r;
1687
+ return o = e.s(null), r = new gr(n, r, o), n || ko(e, r.object), ze(e, t, r), r;
1718
1688
  }
1719
1689
  function en(e, t, n) {
1720
1690
  if (!t)
1721
1691
  throw Error("parentScope required");
1722
- return e = n || e.s(null), new vr(t, t.S, e);
1692
+ return e = n || e.s(null), new gr(t, t.S, e);
1723
1693
  }
1724
1694
  function tn(e, t) {
1725
1695
  for (var n = Qt(e); n && n !== e.N; ) {
@@ -1727,11 +1697,11 @@ function tn(e, t) {
1727
1697
  return n.object.h[t];
1728
1698
  n = n.Va;
1729
1699
  }
1730
- if (n === e.N && pt(e, n.object, t))
1700
+ if (n === e.N && ft(e, n.object, t))
1731
1701
  return e.G(n.object, t);
1732
1702
  n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || C(e, e.pb, t + " is not defined");
1733
1703
  }
1734
- function gr(e, t, n) {
1704
+ function dr(e, t, n) {
1735
1705
  for (var r = Qt(e), o = r.S; r && r !== e.N; ) {
1736
1706
  if (t in r.object.h) {
1737
1707
  try {
@@ -1743,7 +1713,7 @@ function gr(e, t, n) {
1743
1713
  }
1744
1714
  r = r.Va;
1745
1715
  }
1746
- if (r === e.N && (!o || pt(e, r.object, t)))
1716
+ if (r === e.N && (!o || ft(e, r.object, t)))
1747
1717
  return e.g(r.object, t, n);
1748
1718
  C(e, e.pb, t + " is not defined");
1749
1719
  }
@@ -1775,17 +1745,17 @@ function ze(e, t, n) {
1775
1745
  var i = t.constructor, s;
1776
1746
  for (s in t)
1777
1747
  if (s !== "loc") {
1778
- var f = t[s];
1779
- if (f && typeof f == "object") {
1780
- if (Array.isArray(f)) {
1781
- for (o = 0; o < f.length; o++)
1782
- if (f[o] && f[o].constructor === i) {
1783
- var p = ze(e, f[o], n);
1748
+ var u = t[s];
1749
+ if (u && typeof u == "object") {
1750
+ if (Array.isArray(u)) {
1751
+ for (o = 0; o < u.length; o++)
1752
+ if (u[o] && u[o].constructor === i) {
1753
+ var p = ze(e, u[o], n);
1784
1754
  for (s in p)
1785
1755
  r[s] = p[s];
1786
1756
  }
1787
- } else if (f.constructor === i)
1788
- for (s in p = ze(e, f, n), p)
1757
+ } else if (u.constructor === i)
1758
+ for (s in p = ze(e, u, n), p)
1789
1759
  r[s] = p[s];
1790
1760
  }
1791
1761
  }
@@ -1793,7 +1763,7 @@ function ze(e, t, n) {
1793
1763
  t.jb = r;
1794
1764
  }
1795
1765
  for (s in r)
1796
- r[s] === !0 ? e.g(n.object, s, void 0, Gn) : e.g(n.object, s, Zt(e, r[s], n), Gn);
1766
+ r[s] === !0 ? e.g(n.object, s, void 0, Kn) : e.g(n.object, s, Zt(e, r[s], n), Kn);
1797
1767
  return r;
1798
1768
  }
1799
1769
  function fe(e) {
@@ -1803,10 +1773,10 @@ function nn(e, t) {
1803
1773
  return t[0] === Pe ? tn(e, t[1]) : e.G(t[0], t[1]);
1804
1774
  }
1805
1775
  function rn(e, t, n) {
1806
- return t[0] === Pe ? gr(e, t[1], n) : e.g(t[0], t[1], n);
1776
+ return t[0] === Pe ? dr(e, t[1], n) : e.g(t[0], t[1], n);
1807
1777
  }
1808
1778
  function C(e, t, n) {
1809
- throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Dt(e, t, n)), Ye(e, 4, t), dr) : n === void 0 ? t : n;
1779
+ throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Dt(e, t, n)), Ye(e, 4, t), pr) : n === void 0 ? t : n;
1810
1780
  }
1811
1781
  function Ye(e, t, n, r) {
1812
1782
  if (t === 0)
@@ -1884,12 +1854,12 @@ function J(e, t) {
1884
1854
  }
1885
1855
  return "???";
1886
1856
  }
1887
- function Jn(e, t, n) {
1857
+ function Xn(e, t, n) {
1888
1858
  var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
1889
1859
  n = Math.max(Number(o.shift() || 0), 0);
1890
1860
  var s = e.ya();
1891
1861
  if (i instanceof R && i.H === "Function") {
1892
- var f = i;
1862
+ var u = i;
1893
1863
  s.type = "CallExpression", r = r.scope;
1894
1864
  } else {
1895
1865
  try {
@@ -1897,16 +1867,16 @@ function Jn(e, t, n) {
1897
1867
  } catch (g) {
1898
1868
  C(e, e.T, "Invalid code: " + g.message);
1899
1869
  }
1900
- s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], ft(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
1870
+ s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
1901
1871
  }
1902
- return t = new Mo(f, o, r, s, t ? n : -1), yr(e, t, n), t.Db;
1872
+ return t = new Bo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
1903
1873
  }
1904
- function yr(e, t, n) {
1874
+ function mr(e, t, n) {
1905
1875
  t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
1906
1876
  return r.time - o.time;
1907
1877
  });
1908
1878
  }
1909
- function zn(e, t) {
1879
+ function Jn(e, t) {
1910
1880
  for (var n = 0; n < e.ca.length; n++)
1911
1881
  if (e.ca[n].Db == t) {
1912
1882
  e.ca.splice(n, 1);
@@ -1942,7 +1912,7 @@ M.ec = function(e) {
1942
1912
  function k(e, t) {
1943
1913
  this.node = e, this.scope = t;
1944
1914
  }
1945
- function vr(e, t, n) {
1915
+ function gr(e, t, n) {
1946
1916
  this.Va = e, this.S = t, this.object = n;
1947
1917
  }
1948
1918
  function R(e) {
@@ -1958,7 +1928,7 @@ M.toString = function() {
1958
1928
  if (!(this instanceof R))
1959
1929
  return String(this);
1960
1930
  if (this.H === "Array") {
1961
- var e = Xn;
1931
+ var e = Gn;
1962
1932
  e.push(this);
1963
1933
  try {
1964
1934
  var t = [], n = this.h.length, r = !1;
@@ -1974,7 +1944,7 @@ M.toString = function() {
1974
1944
  return t.join(",");
1975
1945
  }
1976
1946
  if (this.H === "Error") {
1977
- if (e = Xn, e.indexOf(this) !== -1)
1947
+ if (e = Gn, e.indexOf(this) !== -1)
1978
1948
  return "[object Error]";
1979
1949
  n = this;
1980
1950
  do
@@ -2003,7 +1973,7 @@ M.toString = function() {
2003
1973
  M.valueOf = function() {
2004
1974
  return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2005
1975
  };
2006
- function Mo(e, t, n, r, o) {
1976
+ function Bo(e, t, n, r, o) {
2007
1977
  this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Fo, this.time = 0;
2008
1978
  }
2009
1979
  var Fo = 0;
@@ -2137,7 +2107,7 @@ d.prototype.stepBinaryExpression = function(e, t, n) {
2137
2107
  n = r >>> t;
2138
2108
  break;
2139
2109
  case "in":
2140
- t instanceof R || C(this, this.j, "'in' expects an object, not '" + t + "'"), n = pt(this, t, r);
2110
+ t instanceof R || C(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
2141
2111
  break;
2142
2112
  case "instanceof":
2143
2113
  H(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
@@ -2203,17 +2173,17 @@ d.prototype.stepCallExpression = function(e, t, n) {
2203
2173
  else {
2204
2174
  try {
2205
2175
  r = Oe(String(o), "eval" + this.Hb++);
2206
- } catch (f) {
2207
- C(this, this.T, "Invalid code: " + f.message);
2176
+ } catch (u) {
2177
+ C(this, this.T, "Invalid code: " + u.message);
2208
2178
  }
2209
- return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : ze(this, r, n), this.value = void 0, new k(o, n);
2179
+ return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : ze(this, r, n), this.value = void 0, new k(o, n);
2210
2180
  }
2211
2181
  else if (o.Ta)
2212
2182
  t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2213
2183
  else if (o.Za) {
2214
2184
  var s = this;
2215
- r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
2216
- t.value = f, s.za = !1;
2185
+ r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
2186
+ t.value = u, s.za = !1;
2217
2187
  }), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
2218
2188
  } else
2219
2189
  C(this, this.j, J(this, n.callee) + " is not callable");
@@ -2527,7 +2497,7 @@ d.prototype.stepUpdateExpression = function(e, t, n) {
2527
2497
  d.prototype.stepVariableDeclaration = function(e, t, n) {
2528
2498
  n = n.fa;
2529
2499
  var r = t.A || 0, o = n[r];
2530
- for (t.Bb && o && (gr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2500
+ for (t.Bb && o && (dr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2531
2501
  if (o.ua)
2532
2502
  return t.A = r, t.Bb = !0, t.Pa = o.id.name, new k(o.ua, t.scope);
2533
2503
  o = n[++r];
@@ -2561,13 +2531,13 @@ const Uo = (e) => e.split(`
2561
2531
  return;
2562
2532
  if (!n.startsWith("state."))
2563
2533
  return t;
2564
- const [o, i] = n.split("="), f = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
2534
+ const [o, i] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
2565
2535
  return `
2566
2536
  ${t}
2567
- ${f}
2537
+ ${u}
2568
2538
  `;
2569
2539
  }).filter(Boolean).join(`
2570
- `), Yn = (e) => e + "JSON", Bo = ({
2540
+ `), zn = (e) => e + "JSON", Vo = ({
2571
2541
  builder: e,
2572
2542
  context: t,
2573
2543
  event: n,
@@ -2576,16 +2546,16 @@ const Uo = (e) => e.split(`
2576
2546
  rootSetState: i,
2577
2547
  code: s
2578
2548
  }) => {
2579
- const f = {
2549
+ const u = {
2580
2550
  ...r,
2581
2551
  ...o
2582
- }, p = pr({
2552
+ }, p = ur({
2583
2553
  builder: e,
2584
2554
  context: t,
2585
2555
  event: n,
2586
- state: f
2556
+ state: u
2587
2557
  }), g = p.map(([S]) => {
2588
- const y = Yn(S);
2558
+ const y = zn(S);
2589
2559
  return `var ${S} = ${y} === undefined ? undefined : JSON.parse(${y});`;
2590
2560
  }).join(`
2591
2561
  `), v = Uo(s);
@@ -2593,7 +2563,7 @@ const Uo = (e) => e.split(`
2593
2563
  q.warn("Skipping evaluation of empty code block.");
2594
2564
  return;
2595
2565
  }
2596
- const b = `
2566
+ const w = `
2597
2567
  function theFunction() {
2598
2568
  ${g}
2599
2569
 
@@ -2601,16 +2571,16 @@ function theFunction() {
2601
2571
  }
2602
2572
  theFunction();
2603
2573
  `, N = (S, y) => {
2604
- const P = hr(f, S, y);
2574
+ const P = fr(u, S, y);
2605
2575
  i == null || i(P);
2606
2576
  }, E = function(S, y) {
2607
- p.forEach(([P, F]) => {
2608
- const m = JSON.stringify(F);
2609
- S.setProperty(y, Yn(P), m);
2577
+ p.forEach(([P, B]) => {
2578
+ const m = JSON.stringify(B);
2579
+ S.setProperty(y, zn(P), m);
2610
2580
  }), S.setProperty(y, "setRootState", S.createNativeFunction(N));
2611
2581
  };
2612
2582
  try {
2613
- const S = new d(b, E);
2583
+ const S = new d(w, E);
2614
2584
  return S.run(), S.pseudoToNative(S.value);
2615
2585
  } catch (S) {
2616
2586
  q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
@@ -2618,7 +2588,7 @@ theFunction();
2618
2588
  });
2619
2589
  return;
2620
2590
  }
2621
- }, Vo = (e) => G() ? vo(e) : Bo(e);
2591
+ }, _o = (e) => G() ? xo(e) : Vo(e);
2622
2592
  function an({
2623
2593
  code: e,
2624
2594
  context: t,
@@ -2632,11 +2602,11 @@ function an({
2632
2602
  q.warn("Skipping evaluation of empty code block.");
2633
2603
  return;
2634
2604
  }
2635
- const f = {
2636
- code: yo(e, {
2605
+ const u = {
2606
+ code: vo(e, {
2637
2607
  isExpression: s
2638
2608
  }),
2639
- builder: go(),
2609
+ builder: yo(),
2640
2610
  context: t,
2641
2611
  event: i,
2642
2612
  rootSetState: o,
@@ -2644,7 +2614,7 @@ function an({
2644
2614
  localState: n
2645
2615
  };
2646
2616
  try {
2647
- return Vo(f);
2617
+ return _o(u);
2648
2618
  } catch (p) {
2649
2619
  q.error("Failed code evaluation: " + p.message, {
2650
2620
  code: e
@@ -2652,7 +2622,8 @@ function an({
2652
2622
  return;
2653
2623
  }
2654
2624
  }
2655
- const _o = ({
2625
+ const pt = (e) => JSON.parse(JSON.stringify(e));
2626
+ const Lo = ({
2656
2627
  block: e,
2657
2628
  context: t,
2658
2629
  localState: n,
@@ -2661,7 +2632,7 @@ const _o = ({
2661
2632
  }) => {
2662
2633
  if (!e.bindings)
2663
2634
  return e;
2664
- const i = ut(e), s = {
2635
+ const i = pt(e), s = {
2665
2636
  ...i,
2666
2637
  properties: {
2667
2638
  ...i.properties
@@ -2670,15 +2641,15 @@ const _o = ({
2670
2641
  ...i.actions
2671
2642
  }
2672
2643
  };
2673
- for (const f in e.bindings) {
2674
- const p = e.bindings[f], g = an({
2644
+ for (const u in e.bindings) {
2645
+ const p = e.bindings[u], g = an({
2675
2646
  code: p,
2676
2647
  localState: n,
2677
2648
  rootState: r,
2678
2649
  rootSetState: o,
2679
2650
  context: t
2680
2651
  });
2681
- hr(s, f, g);
2652
+ fr(s, u, g);
2682
2653
  }
2683
2654
  return s;
2684
2655
  };
@@ -2691,7 +2662,7 @@ function ct({
2691
2662
  rootSetState: i
2692
2663
  }) {
2693
2664
  const s = e;
2694
- return n ? _o({
2665
+ return n ? Lo({
2695
2666
  block: s,
2696
2667
  localState: r,
2697
2668
  rootState: o,
@@ -2699,84 +2670,7 @@ function ct({
2699
2670
  context: t
2700
2671
  }) : s;
2701
2672
  }
2702
- const Lo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), pe = (e) => e != null, xr = (e) => Object.entries(e).map(([n, r]) => {
2703
- if (typeof r == "string")
2704
- return `${Lo(n)}: ${r};`;
2705
- }).filter(pe), $o = (e) => xr(e).join(`
2706
- `), _t = ({
2707
- mediaQuery: e,
2708
- className: t,
2709
- styles: n
2710
- }) => {
2711
- const r = `.${t} {
2712
- ${$o(n)}
2713
- }`;
2714
- return e ? `${e} {
2715
- ${r}
2716
- }` : r;
2717
- };
2718
- function ht(e) {
2719
- return /* @__PURE__ */ I("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2720
- }
2721
- function sn(e) {
2722
- const t = function() {
2723
- const o = ct({
2724
- block: e.block,
2725
- localState: e.context.localState,
2726
- rootState: e.context.rootState,
2727
- rootSetState: e.context.rootSetState,
2728
- context: e.context.context,
2729
- shouldEvaluateBindings: !0
2730
- });
2731
- return pe(o.hide) ? !o.hide : pe(o.show) ? o.show : !0;
2732
- }, n = function() {
2733
- var y;
2734
- const o = ct({
2735
- block: e.block,
2736
- localState: e.context.localState,
2737
- rootState: e.context.rootState,
2738
- rootSetState: e.context.rootSetState,
2739
- context: e.context.context,
2740
- shouldEvaluateBindings: !0
2741
- }), i = o.responsiveStyles, s = e.context.content, f = ur(
2742
- ((y = s == null ? void 0 : s.meta) == null ? void 0 : y.breakpoints) || {}
2743
- ), p = i == null ? void 0 : i.large, g = i == null ? void 0 : i.medium, v = i == null ? void 0 : i.small, b = o.id;
2744
- if (!b)
2745
- return "";
2746
- const N = p ? _t({
2747
- className: b,
2748
- styles: p
2749
- }) : "", E = g ? _t({
2750
- className: b,
2751
- styles: g,
2752
- mediaQuery: Hn(
2753
- "medium",
2754
- f
2755
- )
2756
- }) : "", S = v ? _t({
2757
- className: b,
2758
- styles: v,
2759
- mediaQuery: Hn(
2760
- "small",
2761
- f
2762
- )
2763
- }) : "";
2764
- return [N, E, S].join(" ");
2765
- };
2766
- return /* @__PURE__ */ I(L, { children: n() && t() ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(ht, { styles: n() }) }) : null });
2767
- }
2768
- function Do(e) {
2769
- var t;
2770
- return {
2771
- ...(t = e.component) == null ? void 0 : t.options,
2772
- ...e.options,
2773
- /**
2774
- * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
2775
- */
2776
- builderBlock: e
2777
- };
2778
- }
2779
- const Wo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Lt = (e) => typeof e == "string" && Wo.includes(e.toLowerCase()), Ho = ({
2673
+ const $o = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], _t = (e) => typeof e == "string" && $o.includes(e.toLowerCase()), Do = ({
2780
2674
  block: e,
2781
2675
  context: t,
2782
2676
  registeredComponents: n
@@ -2798,7 +2692,7 @@ const Wo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
2798
2692
  console.warn(`
2799
2693
  Could not find a registered component named "${r}".
2800
2694
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
2801
- }, Ko = ({
2695
+ }, Wo = ({
2802
2696
  block: e,
2803
2697
  context: t
2804
2698
  }) => {
@@ -2831,22 +2725,118 @@ const Wo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
2831
2725
  },
2832
2726
  block: r
2833
2727
  }));
2728
+ }, yr = {
2729
+ small: {
2730
+ min: 320,
2731
+ default: 321,
2732
+ max: 640
2733
+ },
2734
+ medium: {
2735
+ min: 641,
2736
+ default: 642,
2737
+ max: 991
2738
+ },
2739
+ large: {
2740
+ min: 990,
2741
+ default: 991,
2742
+ max: 1200
2743
+ }
2744
+ }, Yn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
2745
+ small: e,
2746
+ medium: t
2747
+ }) => {
2748
+ const n = pt(yr);
2749
+ if (!e || !t)
2750
+ return n;
2751
+ const r = Math.floor(e / 2);
2752
+ n.small = {
2753
+ max: e,
2754
+ min: r,
2755
+ default: r + 1
2756
+ };
2757
+ const o = n.small.max + 1;
2758
+ n.medium = {
2759
+ max: t,
2760
+ min: o,
2761
+ default: o + 1
2762
+ };
2763
+ const i = n.medium.max + 1;
2764
+ return n.large = {
2765
+ max: 2e3,
2766
+ // TODO: decide upper limit
2767
+ min: i,
2768
+ default: i + 1
2769
+ }, n;
2770
+ }, Ho = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), pe = (e) => e != null, xr = (e) => Object.entries(e).map(([n, r]) => {
2771
+ if (typeof r == "string")
2772
+ return `${Ho(n)}: ${r};`;
2773
+ }).filter(pe), Ko = (e) => xr(e).join(`
2774
+ `), Lt = ({
2775
+ mediaQuery: e,
2776
+ className: t,
2777
+ styles: n
2778
+ }) => {
2779
+ const r = `.${t} {
2780
+ ${Ko(n)}
2781
+ }`;
2782
+ return e ? `${e} {
2783
+ ${r}
2784
+ }` : r;
2834
2785
  };
2835
- function Go(e) {
2836
- const t = e.repeatContext;
2837
- return /* @__PURE__ */ I(
2838
- dt,
2839
- {
2786
+ function ht(e) {
2787
+ return /* @__PURE__ */ I("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2788
+ }
2789
+ function sn(e) {
2790
+ const t = function() {
2791
+ const o = ct({
2840
2792
  block: e.block,
2841
- context: t,
2842
- registeredComponents: e.registeredComponents
2843
- }
2844
- );
2793
+ localState: e.context.localState,
2794
+ rootState: e.context.rootState,
2795
+ rootSetState: e.context.rootSetState,
2796
+ context: e.context.context,
2797
+ shouldEvaluateBindings: !0
2798
+ });
2799
+ return pe(o.hide) ? !o.hide : pe(o.show) ? o.show : !0;
2800
+ }, n = function() {
2801
+ var y;
2802
+ const o = ct({
2803
+ block: e.block,
2804
+ localState: e.context.localState,
2805
+ rootState: e.context.rootState,
2806
+ rootSetState: e.context.rootSetState,
2807
+ context: e.context.context,
2808
+ shouldEvaluateBindings: !0
2809
+ }), i = o.responsiveStyles, s = e.context.content, u = vr(
2810
+ ((y = s == null ? void 0 : s.meta) == null ? void 0 : y.breakpoints) || {}
2811
+ ), p = i == null ? void 0 : i.large, g = i == null ? void 0 : i.medium, v = i == null ? void 0 : i.small, w = o.id;
2812
+ if (!w)
2813
+ return "";
2814
+ const N = p ? Lt({
2815
+ className: w,
2816
+ styles: p
2817
+ }) : "", E = g ? Lt({
2818
+ className: w,
2819
+ styles: g,
2820
+ mediaQuery: Yn(
2821
+ "medium",
2822
+ u
2823
+ )
2824
+ }) : "", S = v ? Lt({
2825
+ className: w,
2826
+ styles: v,
2827
+ mediaQuery: Yn(
2828
+ "small",
2829
+ u
2830
+ )
2831
+ }) : "";
2832
+ return [N, E, S].join(" ");
2833
+ };
2834
+ return /* @__PURE__ */ I(L, { children: n() && t() ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(ht, { styles: n() }) }) : null });
2845
2835
  }
2846
- function Xo(e) {
2836
+ function Go(e) {
2847
2837
  return e.charAt(0).toUpperCase() + e.slice(1);
2848
2838
  }
2849
- const Jo = (e) => `on${Xo(e)}`, zo = (e, t) => (n) => an({
2839
+ const Xo = (e) => `on${Go(e)}`, Jo = (e, t) => (n) => an({
2850
2840
  code: e,
2851
2841
  context: t.context,
2852
2842
  localState: t.localState,
@@ -2861,7 +2851,7 @@ function Ea(e) {
2861
2851
  if (!n.hasOwnProperty(r))
2862
2852
  continue;
2863
2853
  const o = n[r];
2864
- let i = Jo(r);
2854
+ let i = Xo(r);
2865
2855
  if (e.stripPrefix)
2866
2856
  switch (xe) {
2867
2857
  case "vue2":
@@ -2872,31 +2862,31 @@ function Ea(e) {
2872
2862
  i = i.replace("on:", "");
2873
2863
  break;
2874
2864
  }
2875
- t[i] = zo(o, e);
2865
+ t[i] = Jo(o, e);
2876
2866
  }
2877
2867
  return t;
2878
2868
  }
2879
- function Yo(e) {
2869
+ function zo(e) {
2880
2870
  return e.className = e.class, delete e.class, e;
2881
2871
  }
2882
- const qo = (e) => ({
2872
+ const Yo = (e) => ({
2883
2873
  href: e.href
2884
2874
  });
2885
- function Zo({
2875
+ function qo({
2886
2876
  block: e,
2887
2877
  context: t
2888
2878
  }) {
2889
2879
  var r;
2890
2880
  const n = {
2891
- ...qo(e),
2881
+ ...Yo(e),
2892
2882
  ...e.properties,
2893
2883
  "builder-id": e.id,
2894
- style: e.style ? Qo(e.style) : void 0,
2884
+ style: e.style ? Zo(e.style) : void 0,
2895
2885
  class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
2896
2886
  };
2897
- return Yo(n);
2887
+ return zo(n);
2898
2888
  }
2899
- function Qo(e) {
2889
+ function Zo(e) {
2900
2890
  switch (xe) {
2901
2891
  case "svelte":
2902
2892
  case "vue2":
@@ -2910,7 +2900,7 @@ function Qo(e) {
2910
2900
  return e;
2911
2901
  }
2912
2902
  }
2913
- const ei = ({
2903
+ const Qo = ({
2914
2904
  componentOptions: e,
2915
2905
  builderBlock: t,
2916
2906
  context: n,
@@ -2930,7 +2920,7 @@ const ei = ({
2930
2920
  * component itself directly. Otherwise, they are provided to the wrapper element.
2931
2921
  */
2932
2922
  ...o ? {
2933
- attributes: Zo({
2923
+ attributes: qo({
2934
2924
  block: t,
2935
2925
  context: s
2936
2926
  })
@@ -2942,7 +2932,7 @@ function qn(e) {
2942
2932
  return /* @__PURE__ */ I(L, { children: e.componentRef ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ ue(
2943
2933
  t,
2944
2934
  {
2945
- ...ei({
2935
+ ...Qo({
2946
2936
  componentOptions: e.componentOptions,
2947
2937
  builderBlock: e.builderBlock,
2948
2938
  context: e.context,
@@ -2973,16 +2963,27 @@ function qn(e) {
2973
2963
  }
2974
2964
  ) }) : null });
2975
2965
  }
2966
+ function ei(e) {
2967
+ const t = e.repeatContext;
2968
+ return /* @__PURE__ */ I(
2969
+ dt,
2970
+ {
2971
+ block: e.block,
2972
+ context: t,
2973
+ registeredComponents: e.registeredComponents
2974
+ }
2975
+ );
2976
+ }
2976
2977
  function dt(e) {
2977
- var g, v, b, N;
2978
+ var g, v, w, N;
2978
2979
  const t = function() {
2979
- return Ho({
2980
+ return Do({
2980
2981
  block: e.block,
2981
2982
  context: e.context,
2982
2983
  registeredComponents: e.registeredComponents
2983
2984
  });
2984
2985
  }, n = function() {
2985
- return Ko({
2986
+ return Wo({
2986
2987
  block: e.block,
2987
2988
  context: e.context
2988
2989
  });
@@ -3002,13 +3003,13 @@ function dt(e) {
3002
3003
  }, s = function() {
3003
3004
  var y;
3004
3005
  return !((y = t()) != null && y.component) && !n() ? r().children ?? [] : [];
3005
- }, f = function() {
3006
- var S, y, P, F, m;
3006
+ }, u = function() {
3007
+ var S, y, P, B, m;
3007
3008
  return {
3008
3009
  blockChildren: r().children ?? [],
3009
3010
  componentRef: (S = t()) == null ? void 0 : S.component,
3010
3011
  componentOptions: {
3011
- ...Do(r()),
3012
+ ...po(r()),
3012
3013
  builderContext: e.context,
3013
3014
  ...((y = t()) == null ? void 0 : y.name) === "Symbol" || ((P = t()) == null ? void 0 : P.name) === "Columns" ? {
3014
3015
  builderComponents: e.registeredComponents
@@ -3017,12 +3018,24 @@ function dt(e) {
3017
3018
  context: p,
3018
3019
  registeredComponents: e.registeredComponents,
3019
3020
  builderBlock: r(),
3020
- includeBlockProps: ((F = t()) == null ? void 0 : F.noWrap) === !0,
3021
+ includeBlockProps: ((B = t()) == null ? void 0 : B.noWrap) === !0,
3021
3022
  isInteractive: !((m = t()) != null && m.isRSC)
3022
3023
  };
3023
3024
  }, p = e.context;
3024
- return /* @__PURE__ */ I(L, { children: i() ? /* @__PURE__ */ I(L, { children: (g = t()) != null && g.noWrap ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(qn, { ...f() }) }) : /* @__PURE__ */ ue(L, { children: [
3025
- Lt(o()) ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(
3025
+ return /* @__PURE__ */ I(L, { children: i() ? /* @__PURE__ */ I(L, { children: (g = t()) != null && g.noWrap ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(
3026
+ qn,
3027
+ {
3028
+ componentRef: u().componentRef,
3029
+ componentOptions: u().componentOptions,
3030
+ blockChildren: u().blockChildren,
3031
+ context: u().context,
3032
+ registeredComponents: u().registeredComponents,
3033
+ builderBlock: u().builderBlock,
3034
+ includeBlockProps: u().includeBlockProps,
3035
+ isInteractive: u().isInteractive
3036
+ }
3037
+ ) }) : /* @__PURE__ */ ue(L, { children: [
3038
+ _t(o()) ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(
3026
3039
  Wn,
3027
3040
  {
3028
3041
  Wrapper: o(),
@@ -3031,8 +3044,8 @@ function dt(e) {
3031
3044
  hasChildren: !1
3032
3045
  }
3033
3046
  ) }) : null,
3034
- !Lt(o()) && n() ? /* @__PURE__ */ I(L, { children: (v = n()) == null ? void 0 : v.map((E, S) => /* @__PURE__ */ I(
3035
- Go,
3047
+ !_t(o()) && n() ? /* @__PURE__ */ I(L, { children: (v = n()) == null ? void 0 : v.map((E, S) => /* @__PURE__ */ I(
3048
+ ei,
3036
3049
  {
3037
3050
  repeatContext: E.context,
3038
3051
  block: E.block,
@@ -3040,7 +3053,7 @@ function dt(e) {
3040
3053
  },
3041
3054
  S
3042
3055
  )) }) : null,
3043
- !Lt(o()) && !n() ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ ue(
3056
+ !_t(o()) && !n() ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ ue(
3044
3057
  Wn,
3045
3058
  {
3046
3059
  Wrapper: o(),
@@ -3048,8 +3061,20 @@ function dt(e) {
3048
3061
  context: e.context,
3049
3062
  hasChildren: !0,
3050
3063
  children: [
3051
- /* @__PURE__ */ I(qn, { ...f() }),
3052
- (b = s()) == null ? void 0 : b.map((E) => /* @__PURE__ */ I(
3064
+ /* @__PURE__ */ I(
3065
+ qn,
3066
+ {
3067
+ componentRef: u().componentRef,
3068
+ componentOptions: u().componentOptions,
3069
+ blockChildren: u().blockChildren,
3070
+ context: u().context,
3071
+ registeredComponents: u().registeredComponents,
3072
+ builderBlock: u().builderBlock,
3073
+ includeBlockProps: u().includeBlockProps,
3074
+ isInteractive: u().isInteractive
3075
+ }
3076
+ ),
3077
+ (w = s()) == null ? void 0 : w.map((E) => /* @__PURE__ */ I(
3053
3078
  dt,
3054
3079
  {
3055
3080
  block: E,
@@ -3115,7 +3140,7 @@ function ti(e) {
3115
3140
  desktopStyle: P
3116
3141
  }) {
3117
3142
  return r === "tablet" ? y : P;
3118
- }, f = function({
3143
+ }, u = function({
3119
3144
  stackedStyle: y,
3120
3145
  desktopStyle: P
3121
3146
  }) {
@@ -3129,35 +3154,35 @@ function ti(e) {
3129
3154
  })
3130
3155
  };
3131
3156
  }, v = function(y) {
3132
- const P = y === 0 ? 0 : t, F = i(y), m = `${P}px`, he = "100%", de = 0;
3157
+ const P = y === 0 ? 0 : t, B = i(y), m = `${P}px`, he = "100%", de = 0;
3133
3158
  return {
3134
- width: F,
3159
+ width: B,
3135
3160
  ["marginLeft"]: m,
3136
- "--column-width-mobile": f({
3161
+ "--column-width-mobile": u({
3137
3162
  stackedStyle: he,
3138
- desktopStyle: F
3163
+ desktopStyle: B
3139
3164
  }),
3140
- "--column-margin-left-mobile": f({
3165
+ "--column-margin-left-mobile": u({
3141
3166
  stackedStyle: de,
3142
3167
  desktopStyle: m
3143
3168
  }),
3144
3169
  "--column-width-tablet": s({
3145
3170
  stackedStyle: he,
3146
- desktopStyle: F
3171
+ desktopStyle: B
3147
3172
  }),
3148
3173
  "--column-margin-left-tablet": s({
3149
3174
  stackedStyle: de,
3150
3175
  desktopStyle: m
3151
3176
  })
3152
3177
  };
3153
- }, b = function(y) {
3154
- var F, m;
3155
- return ur(
3156
- ((m = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : m.breakpoints) || {}
3178
+ }, w = function(y) {
3179
+ var B, m;
3180
+ return vr(
3181
+ ((m = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : m.breakpoints) || {}
3157
3182
  )[y].max;
3158
3183
  }, N = function() {
3159
3184
  return `
3160
- @media (max-width: ${b("medium")}px) {
3185
+ @media (max-width: ${w("medium")}px) {
3161
3186
  .${e.builderBlock.id}-breakpoints {
3162
3187
  flex-direction: var(--flex-dir-tablet);
3163
3188
  align-items: stretch;
@@ -3169,7 +3194,7 @@ function ti(e) {
3169
3194
  }
3170
3195
  }
3171
3196
 
3172
- @media (max-width: ${b("small")}px) {
3197
+ @media (max-width: ${w("small")}px) {
3173
3198
  .${e.builderBlock.id}-breakpoints {
3174
3199
  flex-direction: var(--flex-dir);
3175
3200
  align-items: stretch;
@@ -3186,14 +3211,14 @@ function ti(e) {
3186
3211
  /* @__PURE__ */ ue(
3187
3212
  "div",
3188
3213
  {
3189
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-666689ca`,
3214
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
3190
3215
  style: g(),
3191
3216
  children: [
3192
3217
  /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(ht, { styles: N() }) }),
3193
3218
  (E = e.columns) == null ? void 0 : E.map((S, y) => /* @__PURE__ */ eo(
3194
3219
  "div",
3195
3220
  {
3196
- className: "builder-column div-666689ca-2",
3221
+ className: "builder-column div-0d69fe26-2",
3197
3222
  style: v(y),
3198
3223
  key: y
3199
3224
  },
@@ -3214,10 +3239,10 @@ function ti(e) {
3214
3239
  ]
3215
3240
  }
3216
3241
  ),
3217
- /* @__PURE__ */ I("style", { children: `.div-666689ca {
3242
+ /* @__PURE__ */ I("style", { children: `.div-0d69fe26 {
3218
3243
  display: flex;
3219
3244
  line-height: normal;
3220
- }.div-666689ca-2 {
3245
+ }.div-0d69fe26-2 {
3221
3246
  display: flex;
3222
3247
  flex-direction: column;
3223
3248
  align-items: stretch;
@@ -3254,98 +3279,142 @@ function Ia(e) {
3254
3279
  }
3255
3280
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ri(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3256
3281
  }
3257
- const st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3258
- ...t,
3259
- testVariationId: t.id,
3260
- id: e == null ? void 0 : e.id
3261
- })), oi = ({
3262
- canTrack: e,
3263
- content: t
3264
- }) => !(!(st(t).length > 0) || !e || G());
3265
- function ii(e, t, n) {
3266
- var s;
3267
- function r() {
3268
- function f(S, y, P) {
3269
- let F = "";
3270
- if (P) {
3271
- const m = /* @__PURE__ */ new Date();
3272
- m.setTime(m.getTime() + P * 24 * 60 * 60 * 1e3), F = "; expires=" + m.toUTCString();
3273
- }
3274
- document.cookie = S + "=" + (y || "") + F + "; path=/; Secure; SameSite=None";
3275
- }
3276
- function p(S) {
3277
- const y = S + "=", P = document.cookie.split(";");
3278
- for (let F = 0; F < P.length; F++) {
3279
- let m = P[F];
3280
- for (; m.charAt(0) === " "; )
3281
- m = m.substring(1, m.length);
3282
- if (m.indexOf(y) === 0)
3283
- return m.substring(y.length, m.length);
3284
- }
3285
- return null;
3286
- }
3287
- const g = `builder.tests.${e}`, v = p(g), b = t.map((S) => S.id).concat(e);
3288
- if (v && b.includes(v))
3289
- return v;
3290
- let N = 0;
3291
- const E = Math.random();
3292
- for (let S = 0; S < t.length; S++) {
3293
- const y = t[S], P = y.testRatio;
3294
- if (N += P, E < N)
3295
- return f(g, y.id), y.id;
3296
- }
3297
- return f(g, e), e;
3298
- }
3299
- const o = r(), i = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
3300
- if (n) {
3301
- i.remove();
3302
- const f = document.currentScript;
3303
- f == null || f.remove();
3304
- } else {
3305
- const f = t.concat({
3306
- id: e
3307
- }).filter((p) => p.id !== o).map((p) => `.variant-${p.id} { display: none; }
3308
- `).join("");
3309
- i.innerHTML = f;
3310
- }
3311
- }
3312
- function ai(e, t, n) {
3313
- var p;
3314
- if (!navigator.cookieEnabled)
3282
+ const oi = (e) => {
3283
+ if (e === "localhost" || e === "127.0.0.1")
3284
+ return e;
3285
+ const t = e.split(".");
3286
+ return t.length > 2 ? t.slice(1).join(".") : e;
3287
+ }, br = ({
3288
+ name: e,
3289
+ canTrack: t
3290
+ }) => {
3291
+ var n;
3292
+ try {
3293
+ return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
3294
+ } catch (r) {
3295
+ q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3315
3296
  return;
3316
- function r(g) {
3317
- const v = g + "=", b = document.cookie.split(";");
3318
- for (let N = 0; N < b.length; N++) {
3319
- let E = b[N];
3320
- for (; E.charAt(0) === " "; )
3321
- E = E.substring(1, E.length);
3322
- if (E.indexOf(v) === 0)
3323
- return E.substring(v.length, E.length);
3324
- }
3325
- return null;
3326
3297
  }
3327
- const o = `builder.tests.${t}`, i = r(o), s = (p = document.currentScript) == null ? void 0 : p.parentElement, f = e === t;
3328
- if (i === e) {
3329
- if (f)
3298
+ }, wr = async (e) => br(e), ii = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(pe).join("; "), ai = [["secure", ""], ["SameSite", "None"]], si = ({
3299
+ name: e,
3300
+ value: t,
3301
+ expires: n
3302
+ }) => {
3303
+ const o = (G() ? location.protocol === "https:" : !0) ? ai : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", oi(window.location.hostname)], ...o];
3304
+ return ii(s);
3305
+ }, Sr = async ({
3306
+ name: e,
3307
+ value: t,
3308
+ expires: n,
3309
+ canTrack: r
3310
+ }) => {
3311
+ try {
3312
+ if (!r)
3330
3313
  return;
3331
- s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
3332
- } else {
3333
- f && (n ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
3334
- return;
3314
+ const o = si({
3315
+ name: e,
3316
+ value: t,
3317
+ expires: n
3318
+ });
3319
+ document.cookie = o;
3320
+ } catch (o) {
3321
+ q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3335
3322
  }
3336
- }
3337
- const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "builderIoAbTest", Sr = "builderIoRenderContent", li = () => {
3338
- const e = ii.toString().replace(/\s+/g, " "), t = ai.toString().replace(/\s+/g, " ");
3339
- return `
3340
- window.${br} = ${e}
3341
- window.${Sr} = ${t}
3342
- `;
3343
- }, ci = (e, t) => `
3344
- window.${br}("${t}",${JSON.stringify(e)}, ${wr})`, ui = ({
3323
+ }, li = "builder.tests", cn = (e) => `${li}.${e}`, ci = ({
3324
+ contentId: e
3325
+ }) => wr({
3326
+ name: cn(e),
3327
+ canTrack: !0
3328
+ }), ui = ({
3329
+ contentId: e
3330
+ }) => br({
3331
+ name: cn(e),
3332
+ canTrack: !0
3333
+ }), fi = ({
3345
3334
  contentId: e,
3346
- variationId: t
3347
- }) => `
3348
- window.${Sr}("${t}", "${e}", ${wr})`, fi = {
3335
+ value: t
3336
+ }) => Sr({
3337
+ name: cn(e),
3338
+ value: t,
3339
+ canTrack: !0
3340
+ }), kr = (e) => pe(e.id) && pe(e.variations) && Object.keys(e.variations).length > 0, pi = ({
3341
+ id: e,
3342
+ variations: t
3343
+ }) => {
3344
+ var o;
3345
+ let n = 0;
3346
+ const r = Math.random();
3347
+ for (const i in t) {
3348
+ const s = (o = t[i]) == null ? void 0 : o.testRatio;
3349
+ if (n += s, r < n)
3350
+ return i;
3351
+ }
3352
+ return e;
3353
+ }, Cr = (e) => {
3354
+ const t = pi(e);
3355
+ return fi({
3356
+ contentId: e.id,
3357
+ value: t
3358
+ }).catch((n) => {
3359
+ q.error("could not store A/B test variation: ", n);
3360
+ }), t;
3361
+ }, Er = ({
3362
+ item: e,
3363
+ testGroupId: t
3364
+ }) => {
3365
+ const n = e.variations[t];
3366
+ return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
3367
+ !n ? {
3368
+ testVariationId: e.id,
3369
+ testVariationName: "Default"
3370
+ } : {
3371
+ data: n.data,
3372
+ testVariationId: n.id,
3373
+ testVariationName: n.name || (n.id === e.id ? "Default" : "")
3374
+ };
3375
+ }, hi = ({
3376
+ item: e,
3377
+ canTrack: t
3378
+ }) => {
3379
+ if (!t)
3380
+ return e;
3381
+ if (!e)
3382
+ return;
3383
+ if (!kr(e))
3384
+ return e;
3385
+ const n = ui({
3386
+ contentId: e.id
3387
+ }) || Cr({
3388
+ variations: e.variations,
3389
+ id: e.id
3390
+ }), r = Er({
3391
+ item: e,
3392
+ testGroupId: n
3393
+ });
3394
+ return {
3395
+ ...e,
3396
+ ...r
3397
+ };
3398
+ }, di = async ({
3399
+ item: e,
3400
+ canTrack: t
3401
+ }) => {
3402
+ if (!t || !kr(e))
3403
+ return e;
3404
+ const r = await ci({
3405
+ contentId: e.id
3406
+ }) || Cr({
3407
+ variations: e.variations,
3408
+ id: e.id
3409
+ }), o = Er({
3410
+ item: e,
3411
+ testGroupId: r
3412
+ });
3413
+ return {
3414
+ ...e,
3415
+ ...o
3416
+ };
3417
+ }, Ht = (e) => pe(e) ? e : !0, mi = {
3349
3418
  name: "Core:Button",
3350
3419
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
3351
3420
  defaultStyles: {
@@ -3378,7 +3447,7 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3378
3447
  }],
3379
3448
  static: !0,
3380
3449
  noWrap: !0
3381
- }, pi = {
3450
+ }, gi = {
3382
3451
  // TODO: ways to statically preprocess JSON for references, functions, etc
3383
3452
  name: "Columns",
3384
3453
  isRSC: !0,
@@ -3557,7 +3626,7 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3557
3626
  });
3558
3627
  }
3559
3628
  const n = e.get("columns");
3560
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((f, p) => f + p.get("width"), 0) !== 100) && t();
3629
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u, p) => u + p.get("width"), 0) !== 100) && t();
3561
3630
  }
3562
3631
  }, {
3563
3632
  name: "space",
@@ -3579,13 +3648,60 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3579
3648
  helperText: "When stacking columns for mobile devices, reverse the ordering",
3580
3649
  advanced: !0
3581
3650
  }]
3582
- }, hi = {
3651
+ }, yi = {
3652
+ name: "Custom Code",
3653
+ static: !0,
3654
+ requiredPermissions: ["editCode"],
3655
+ inputs: [{
3656
+ name: "code",
3657
+ type: "html",
3658
+ required: !0,
3659
+ defaultValue: "<p>Hello there, I am custom HTML code!</p>",
3660
+ code: !0
3661
+ }, {
3662
+ name: "replaceNodes",
3663
+ type: "boolean",
3664
+ helperText: "Preserve server rendered dom nodes",
3665
+ advanced: !0
3666
+ }, {
3667
+ name: "scriptsClientOnly",
3668
+ type: "boolean",
3669
+ defaultValue: !1,
3670
+ helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3671
+ advanced: !0
3672
+ }]
3673
+ }, vi = {
3674
+ name: "Embed",
3675
+ static: !0,
3676
+ inputs: [{
3677
+ name: "url",
3678
+ type: "url",
3679
+ required: !0,
3680
+ defaultValue: "",
3681
+ helperText: "e.g. enter a youtube url, google map, etc",
3682
+ onChange: (e) => {
3683
+ const t = e.get("url");
3684
+ if (t)
3685
+ return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
3686
+ e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
3687
+ }).catch((r) => {
3688
+ e.set("content", "There was an error embedding this URL, please try again or another URL");
3689
+ });
3690
+ e.delete("content");
3691
+ }
3692
+ }, {
3693
+ name: "content",
3694
+ type: "html",
3695
+ defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3696
+ hideFromUI: !0
3697
+ }]
3698
+ }, xi = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => xi.includes(e.type), bi = {
3583
3699
  name: "Fragment",
3584
3700
  static: !0,
3585
3701
  hidden: !0,
3586
3702
  canHaveChildren: !0,
3587
3703
  noWrap: !0
3588
- }, di = {
3704
+ }, wi = {
3589
3705
  name: "Image",
3590
3706
  static: !0,
3591
3707
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3605,17 +3721,17 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3605
3721
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
3606
3722
  onChange: (e) => {
3607
3723
  e.delete("srcset"), e.delete("noWebp");
3608
- function n(s, f = 6e4) {
3724
+ function n(s, u = 6e4) {
3609
3725
  return new Promise((p, g) => {
3610
3726
  const v = document.createElement("img");
3611
- let b = !1;
3727
+ let w = !1;
3612
3728
  v.onload = () => {
3613
- b = !0, p(v);
3729
+ w = !0, p(v);
3614
3730
  }, v.addEventListener("error", (N) => {
3615
3731
  console.warn("Image load failed", N.error), g(N.error);
3616
3732
  }), v.src = s, setTimeout(() => {
3617
- b || g(new Error("Image load timed out"));
3618
- }, f);
3733
+ w || g(new Error("Image load timed out"));
3734
+ }, u);
3619
3735
  });
3620
3736
  }
3621
3737
  function r(s) {
@@ -3626,8 +3742,8 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3626
3742
  s.type.includes("svg") && e.set("noWebp", !0);
3627
3743
  }), o && (!i || i === 0.7041))
3628
3744
  return n(o).then((s) => {
3629
- const f = e.get("aspectRatio");
3630
- e.get("image") === o && (!f || f === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
3745
+ const u = e.get("aspectRatio");
3746
+ e.get("image") === o && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
3631
3747
  });
3632
3748
  }
3633
3749
  }, {
@@ -3685,7 +3801,21 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3685
3801
  advanced: !0,
3686
3802
  defaultValue: 0.7041
3687
3803
  }]
3688
- }, mi = {
3804
+ }, Si = {
3805
+ // friendlyName?
3806
+ name: "Raw:Img",
3807
+ hideFromInsertMenu: !0,
3808
+ image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
3809
+ inputs: [{
3810
+ name: "image",
3811
+ bubble: !0,
3812
+ type: "file",
3813
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
3814
+ required: !0
3815
+ }],
3816
+ noWrap: !0,
3817
+ static: !0
3818
+ }, ki = {
3689
3819
  name: "Core:Section",
3690
3820
  static: !0,
3691
3821
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3724,7 +3854,7 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3724
3854
  }
3725
3855
  }
3726
3856
  }]
3727
- }, gi = {
3857
+ }, Ci = {
3728
3858
  name: "Symbol",
3729
3859
  noWrap: !0,
3730
3860
  static: !0,
@@ -3757,7 +3887,7 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3757
3887
  hideFromUI: !0,
3758
3888
  type: "boolean"
3759
3889
  }]
3760
- }, yi = {
3890
+ }, Ei = {
3761
3891
  name: "Text",
3762
3892
  static: !0,
3763
3893
  isRSC: !0,
@@ -3776,7 +3906,7 @@ const si = (e) => e === "react" || e === "reactNative", wr = si(xe), br = "build
3776
3906
  textAlign: "center"
3777
3907
  }
3778
3908
  };
3779
- function vi(e) {
3909
+ function Ii(e) {
3780
3910
  var t;
3781
3911
  return /* @__PURE__ */ I(
3782
3912
  "div",
@@ -3789,7 +3919,7 @@ function vi(e) {
3789
3919
  }
3790
3920
  );
3791
3921
  }
3792
- const xi = {
3922
+ const Ti = {
3793
3923
  name: "Video",
3794
3924
  canHaveChildren: !0,
3795
3925
  defaultStyles: {
@@ -3870,342 +4000,397 @@ const xi = {
3870
4000
  defaultValue: !0,
3871
4001
  advanced: !0
3872
4002
  }]
3873
- }, wi = {
3874
- name: "Embed",
3875
- static: !0,
3876
- inputs: [{
3877
- name: "url",
3878
- type: "url",
3879
- required: !0,
3880
- defaultValue: "",
3881
- helperText: "e.g. enter a youtube url, google map, etc",
3882
- onChange: (e) => {
3883
- const t = e.get("url");
3884
- if (t)
3885
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
3886
- e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
3887
- }).catch((r) => {
3888
- e.set("content", "There was an error embedding this URL, please try again or another URL");
3889
- });
3890
- e.delete("content");
3891
- }
3892
- }, {
3893
- name: "content",
3894
- type: "html",
3895
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3896
- hideFromUI: !0
3897
- }]
3898
- }, bi = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => bi.includes(e.type), Si = {
3899
- // friendlyName?
3900
- name: "Raw:Img",
3901
- hideFromInsertMenu: !0,
3902
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
3903
- inputs: [{
3904
- name: "image",
3905
- bubble: !0,
3906
- type: "file",
3907
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
3908
- required: !0
3909
- }],
3910
- noWrap: !0,
3911
- static: !0
3912
- }, ki = {
3913
- name: "Custom Code",
3914
- static: !0,
3915
- requiredPermissions: ["editCode"],
3916
- inputs: [{
3917
- name: "code",
3918
- type: "html",
3919
- required: !0,
3920
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
3921
- code: !0
3922
- }, {
3923
- name: "replaceNodes",
3924
- type: "boolean",
3925
- helperText: "Preserve server rendered dom nodes",
3926
- advanced: !0
3927
- }, {
3928
- name: "scriptsClientOnly",
3929
- type: "boolean",
3930
- defaultValue: !1,
3931
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3932
- advanced: !0
3933
- }]
3934
4003
  }, Qn = () => [{
3935
4004
  component: ro,
3936
- ...fi
4005
+ ...mi
3937
4006
  }, {
3938
4007
  component: ti,
3939
- ...pi
4008
+ ...gi
3940
4009
  }, {
3941
4010
  component: oo,
3942
- ...ki
4011
+ ...yi
3943
4012
  }, {
3944
4013
  component: io,
3945
- ...wi
4014
+ ...vi
3946
4015
  }, {
3947
4016
  component: ao,
3948
- ...hi
4017
+ ...bi
3949
4018
  }, {
3950
4019
  component: so,
3951
- ...di
4020
+ ...wi
3952
4021
  }, {
3953
4022
  component: lo,
3954
4023
  ...Si
3955
4024
  }, {
3956
4025
  component: co,
3957
- ...mi
4026
+ ...ki
3958
4027
  }, {
3959
4028
  component: xa,
3960
- ...gi
4029
+ ...Ci
3961
4030
  }, {
3962
- component: vi,
3963
- ...yi
4031
+ component: Ii,
4032
+ ...Ei
3964
4033
  }, {
3965
4034
  component: uo,
3966
- ...xi
4035
+ ...Ti
3967
4036
  }], er = [], Aa = (e) => ({
3968
4037
  type: "builder.registerComponent",
3969
- data: Ht(e)
3970
- }), Ci = (e) => {
4038
+ data: Kt(e)
4039
+ }), Ai = (e) => {
3971
4040
  const t = e.toString().trim();
3972
4041
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3973
- }, Ei = (e) => typeof e == "function" ? Ci(e) : ut(e), Ht = ({
4042
+ }, ji = (e) => typeof e == "function" ? Ai(e) : pt(e), Kt = ({
3974
4043
  inputs: e,
3975
4044
  ...t
3976
4045
  }) => ({
3977
- ...ut(t),
4046
+ ...pt(t),
3978
4047
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
3979
4048
  ...r,
3980
- [o]: Ei(i)
4049
+ [o]: ji(i)
3981
4050
  }), {}))
3982
- }), Ii = (e) => {
3983
- var i;
3984
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
3985
- let o = "";
3986
- if (r && t && n && (o += `
3987
- @font-face {
3988
- font-family: "${t}";
3989
- src: local("${n}"), url('${r}') format('woff2');
3990
- font-display: fallback;
3991
- font-weight: 400;
4051
+ }), st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4052
+ ...t,
4053
+ testVariationId: t.id,
4054
+ id: e == null ? void 0 : e.id
4055
+ })), Oi = ({
4056
+ canTrack: e,
4057
+ content: t
4058
+ }) => !(!(st(t).length > 0) || !e || G());
4059
+ function Ri(e, t, n) {
4060
+ var s;
4061
+ function r() {
4062
+ function u(S, y, P) {
4063
+ let B = "";
4064
+ if (P) {
4065
+ const m = /* @__PURE__ */ new Date();
4066
+ m.setTime(m.getTime() + P * 24 * 60 * 60 * 1e3), B = "; expires=" + m.toUTCString();
4067
+ }
4068
+ document.cookie = S + "=" + (y || "") + B + "; path=/; Secure; SameSite=None";
4069
+ }
4070
+ function p(S) {
4071
+ const y = S + "=", P = document.cookie.split(";");
4072
+ for (let B = 0; B < P.length; B++) {
4073
+ let m = P[B];
4074
+ for (; m.charAt(0) === " "; )
4075
+ m = m.substring(1, m.length);
4076
+ if (m.indexOf(y) === 0)
4077
+ return m.substring(y.length, m.length);
4078
+ }
4079
+ return null;
4080
+ }
4081
+ const g = `builder.tests.${e}`, v = p(g), w = t.map((S) => S.id).concat(e);
4082
+ if (v && w.includes(v))
4083
+ return v;
4084
+ let N = 0;
4085
+ const E = Math.random();
4086
+ for (let S = 0; S < t.length; S++) {
4087
+ const y = t[S], P = y.testRatio;
4088
+ if (N += P, E < N)
4089
+ return u(g, y.id), y.id;
4090
+ }
4091
+ return u(g, e), e;
4092
+ }
4093
+ const o = r(), i = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
4094
+ if (n) {
4095
+ i.remove();
4096
+ const u = document.currentScript;
4097
+ u == null || u.remove();
4098
+ } else {
4099
+ const u = t.concat({
4100
+ id: e
4101
+ }).filter((p) => p.id !== o).map((p) => `.variant-${p.id} { display: none; }
4102
+ `).join("");
4103
+ i.innerHTML = u;
4104
+ }
3992
4105
  }
3993
- `.trim()), e.files)
3994
- for (const s in e.files) {
3995
- if (!(String(Number(s)) === s))
3996
- continue;
3997
- const p = e.files[s];
3998
- p && p !== r && (o += `
3999
- @font-face {
4000
- font-family: "${t}";
4001
- src: url('${p}') format('woff2');
4002
- font-display: fallback;
4003
- font-weight: ${s};
4106
+ function Pi(e, t, n) {
4107
+ var p;
4108
+ if (!navigator.cookieEnabled)
4109
+ return;
4110
+ function r(g) {
4111
+ const v = g + "=", w = document.cookie.split(";");
4112
+ for (let N = 0; N < w.length; N++) {
4113
+ let E = w[N];
4114
+ for (; E.charAt(0) === " "; )
4115
+ E = E.substring(1, E.length);
4116
+ if (E.indexOf(v) === 0)
4117
+ return E.substring(v.length, E.length);
4118
+ }
4119
+ return null;
4120
+ }
4121
+ const o = `builder.tests.${t}`, i = r(o), s = (p = document.currentScript) == null ? void 0 : p.parentElement, u = e === t;
4122
+ if (i === e) {
4123
+ if (u)
4124
+ return;
4125
+ s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
4126
+ } else {
4127
+ u && (n ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
4128
+ return;
4129
+ }
4004
4130
  }
4005
- `.trim());
4131
+ const Ni = (e) => e === "react" || e === "reactNative", Ir = Ni(xe), Tr = "builderIoAbTest", Ar = "builderIoRenderContent", Mi = () => {
4132
+ const e = Ri.toString().replace(/\s+/g, " "), t = Pi.toString().replace(/\s+/g, " ");
4133
+ return `
4134
+ window.${Tr} = ${e}
4135
+ window.${Ar} = ${t}
4136
+ `;
4137
+ }, Bi = (e, t) => `
4138
+ window.${Tr}("${t}",${JSON.stringify(e)}, ${Ir})`, Fi = ({
4139
+ contentId: e,
4140
+ variationId: t
4141
+ }) => `
4142
+ window.${Ar}("${t}", "${e}", ${Ir})`;
4143
+ function Gt(e) {
4144
+ return /* @__PURE__ */ I(
4145
+ "script",
4146
+ {
4147
+ dangerouslySetInnerHTML: { __html: e.scriptStr },
4148
+ id: e.id
4006
4149
  }
4007
- return o;
4008
- }, Ti = ({
4009
- customFonts: e
4010
- }) => {
4011
- var t;
4012
- return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
4013
- }, Ai = ({
4014
- cssCode: e,
4015
- contentId: t
4016
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4017
- function ji(e) {
4018
- const t = `
4019
- ${Ai({
4020
- cssCode: e.cssCode,
4021
- contentId: e.contentId
4022
- })}
4023
- ${Ti({
4024
- customFonts: e.customFonts
4025
- })}
4026
-
4027
- .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
4028
- margin: 0;
4150
+ );
4029
4151
  }
4030
- .builder-text > p, .builder-text > .builder-paragraph {
4031
- color: inherit;
4032
- line-height: inherit;
4033
- letter-spacing: inherit;
4034
- font-weight: inherit;
4035
- font-size: inherit;
4036
- text-align: inherit;
4037
- font-family: inherit;
4152
+ const Ui = (e) => {
4153
+ const t = e.get("preview"), n = e.get("overrides." + t);
4154
+ return n || q.warn("No previewed ID found in search params."), n;
4155
+ };
4156
+ function Vi() {
4157
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
4158
+ max: 500,
4159
+ // how long to live in ms
4160
+ ttl: 1e3 * 60 * 5
4161
+ }));
4038
4162
  }
4039
- `.trim();
4040
- return /* @__PURE__ */ I(ht, { styles: t });
4163
+ function _i(e) {
4164
+ Vi();
4165
+ const t = Ui(e);
4166
+ return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4041
4167
  }
4042
- const Oi = ({
4043
- content: e,
4044
- data: t,
4045
- locale: n
4046
- }) => {
4047
- var i, s, f;
4048
- const r = {};
4049
- (s = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || s.forEach((p) => {
4050
- var g;
4051
- p.name && p.defaultValue !== void 0 && ((g = e == null ? void 0 : e.data) != null && g.state) && e.data.state[p.name] === void 0 && (r[p.name] = p.defaultValue);
4052
- });
4053
- const o = {
4054
- ...(f = e == null ? void 0 : e.data) == null ? void 0 : f.state,
4055
- ...t,
4056
- ...n ? {
4057
- locale: n
4058
- } : {}
4059
- };
4060
- return {
4061
- ...r,
4062
- ...o
4063
- };
4064
- }, Ri = ({
4065
- content: e,
4066
- data: t
4067
- }) => e ? {
4068
- ...e,
4069
- data: {
4070
- ...e == null ? void 0 : e.data,
4071
- ...t
4072
- },
4073
- meta: e == null ? void 0 : e.meta
4074
- } : void 0;
4075
- function Pi() {
4168
+ function Li() {
4076
4169
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
4077
4170
  }
4078
- function Ni() {
4079
- const e = Pi().fetch;
4171
+ function $i() {
4172
+ const e = Li().fetch;
4080
4173
  if (typeof e > "u")
4081
4174
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
4082
4175
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
4083
4176
  return e;
4084
4177
  }
4085
- const Mi = Ni(), Fi = (e) => {
4086
- if (e === "localhost" || e === "127.0.0.1")
4087
- return e;
4088
- const t = e.split(".");
4089
- return t.length > 2 ? t.slice(1).join(".") : e;
4090
- }, kr = ({
4091
- name: e,
4092
- canTrack: t
4093
- }) => {
4094
- var n;
4095
- try {
4096
- return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
4097
- } catch (r) {
4098
- q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
4099
- return;
4100
- }
4101
- }, Cr = async (e) => kr(e), Ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(pe).join("; "), Bi = [["secure", ""], ["SameSite", "None"]], Vi = ({
4102
- name: e,
4103
- value: t,
4104
- expires: n
4105
- }) => {
4106
- const o = (G() ? location.protocol === "https:" : !0) ? Bi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Fi(window.location.hostname)], ...o];
4107
- return Ui(s);
4108
- }, Er = async ({
4109
- name: e,
4110
- value: t,
4111
- expires: n,
4112
- canTrack: r
4113
- }) => {
4114
- try {
4115
- if (!r)
4116
- return;
4117
- const o = Vi({
4118
- name: e,
4119
- value: t,
4120
- expires: n
4121
- });
4122
- document.cookie = o;
4123
- } catch (o) {
4124
- q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
4125
- }
4126
- };
4127
- function _i() {
4128
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4129
- const t = Math.random() * 16 | 0;
4130
- return (e == "x" ? t : t & 3 | 8).toString(16);
4131
- });
4132
- }
4133
- function Ir() {
4134
- return _i().replace(/-/g, "");
4178
+ const Di = $i();
4179
+ function lt(e, t = null, n = ".") {
4180
+ return Object.keys(e).reduce((r, o) => {
4181
+ const i = e[o], s = [t, o].filter(Boolean).join(n);
4182
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
4183
+ ...r,
4184
+ ...lt(i, s, n)
4185
+ } : {
4186
+ ...r,
4187
+ [s]: i
4188
+ };
4189
+ }, {});
4135
4190
  }
4136
- const Tr = "builderSessionId", Li = async ({
4137
- canTrack: e
4138
- }) => {
4191
+ const Wi = "v3", tr = "builder.", Hi = "options.", Ki = (e) => {
4192
+ const t = {};
4193
+ return e.forEach((n, r) => {
4194
+ t[r] = n;
4195
+ }), t;
4196
+ }, jr = (e) => {
4139
4197
  if (!e)
4140
- return;
4141
- const t = await Cr({
4142
- name: Tr,
4143
- canTrack: e
4144
- });
4145
- if (pe(t))
4146
- return t;
4147
- {
4148
- const n = $i();
4149
- return Di({
4150
- id: n,
4151
- canTrack: e
4152
- }), n;
4153
- }
4154
- }, $i = () => Ir(), Di = ({
4155
- id: e,
4156
- canTrack: t
4157
- }) => Er({
4158
- name: Tr,
4159
- value: e,
4160
- canTrack: t
4161
- }), Ar = () => G() && typeof localStorage < "u" ? localStorage : void 0, Wi = ({
4162
- key: e,
4163
- canTrack: t
4164
- }) => {
4198
+ return {};
4199
+ const t = Or(e), n = {};
4200
+ return Object.keys(t).forEach((r) => {
4201
+ if (r.startsWith(tr)) {
4202
+ const o = r.replace(tr, "").replace(Hi, "");
4203
+ n[o] = t[r];
4204
+ }
4205
+ }), n;
4206
+ }, Gi = () => {
4207
+ if (!G())
4208
+ return {};
4209
+ const e = new URLSearchParams(window.location.search);
4210
+ return jr(e);
4211
+ }, Or = (e) => e instanceof URLSearchParams ? Ki(e) : e, nr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, un = (e) => {
4212
+ let {
4213
+ noTraverse: t = !1
4214
+ } = e;
4215
+ const {
4216
+ limit: n = 30,
4217
+ userAttributes: r,
4218
+ query: o,
4219
+ model: i,
4220
+ apiKey: s,
4221
+ includeRefs: u = !0,
4222
+ enrich: p,
4223
+ locale: g,
4224
+ apiVersion: v = Wi,
4225
+ fields: w,
4226
+ omit: N,
4227
+ offset: E,
4228
+ cacheSeconds: S,
4229
+ staleCacheSeconds: y,
4230
+ sort: P,
4231
+ includeUnpublished: B
4232
+ } = e;
4233
+ if (!s)
4234
+ throw new Error("Missing API key");
4235
+ if (!["v2", "v3"].includes(v))
4236
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
4237
+ (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
4238
+ const m = new URL(`https://cdn.builder.io/api/${v}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${g ? `&locale=${g}` : ""}${p ? `&enrich=${p}` : ""}`);
4239
+ if (m.searchParams.set("omit", N || "meta.componentsUsed"), w && m.searchParams.set("fields", w), Number.isFinite(E) && E > -1 && m.searchParams.set("offset", String(Math.floor(E))), typeof B == "boolean" && m.searchParams.set("includeUnpublished", String(B)), S && nr(S) && m.searchParams.set("cacheSeconds", String(S)), y && nr(y) && m.searchParams.set("staleCacheSeconds", String(y)), P) {
4240
+ const Z = lt({
4241
+ sort: P
4242
+ });
4243
+ for (const F in Z)
4244
+ m.searchParams.set(F, JSON.stringify(Z[F]));
4245
+ }
4246
+ const he = {
4247
+ ...Gi(),
4248
+ ...Or(e.options || {})
4249
+ }, de = lt(he);
4250
+ for (const Z in de)
4251
+ m.searchParams.set(Z, String(de[Z]));
4252
+ if (r && m.searchParams.set("userAttributes", JSON.stringify(r)), o) {
4253
+ const Z = lt({
4254
+ query: o
4255
+ });
4256
+ for (const F in Z)
4257
+ m.searchParams.set(F, JSON.stringify(Z[F]));
4258
+ }
4259
+ return m;
4260
+ }, Xi = (e) => "results" in e;
4261
+ async function fn(e) {
4262
+ const t = await Rr({
4263
+ ...e,
4264
+ limit: 1
4265
+ });
4266
+ return t && t.results[0] || null;
4267
+ }
4268
+ const ja = fn, Ji = async (e) => {
4269
+ const t = un(e);
4270
+ return await (await Di(t.href)).json();
4271
+ }, zi = async (e, t, n = un(e)) => {
4272
+ const r = Ht(e.canTrack);
4273
+ if (n.search.includes("preview=")) {
4274
+ const i = [];
4275
+ for (const s of t.results) {
4276
+ const u = _i(n.searchParams);
4277
+ i.push(u || s);
4278
+ }
4279
+ t.results = i;
4280
+ }
4281
+ if (!r || !(G() || xe === "reactNative"))
4282
+ return t;
4283
+ try {
4284
+ const i = [];
4285
+ for (const s of t.results)
4286
+ i.push(await di({
4287
+ item: s,
4288
+ canTrack: r
4289
+ }));
4290
+ t.results = i;
4291
+ } catch (i) {
4292
+ q.error("Could not process A/B tests. ", i);
4293
+ }
4294
+ return t;
4295
+ };
4296
+ async function Rr(e) {
4297
+ try {
4298
+ const t = un(e), n = await Ji(e);
4299
+ return Xi(n) ? zi(e, n) : (q.error("Error fetching data. ", {
4300
+ url: t,
4301
+ content: n,
4302
+ options: e
4303
+ }), null);
4304
+ } catch (t) {
4305
+ return q.error("Error fetching data. ", t), null;
4306
+ }
4307
+ }
4308
+ const Oa = Rr;
4309
+ function Ra() {
4310
+ return !G() || Xt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4311
+ }
4312
+ function Yi() {
4313
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4314
+ const t = Math.random() * 16 | 0;
4315
+ return (e == "x" ? t : t & 3 | 8).toString(16);
4316
+ });
4317
+ }
4318
+ function Pr() {
4319
+ return Yi().replace(/-/g, "");
4320
+ }
4321
+ const Nr = "builderSessionId", qi = async ({
4322
+ canTrack: e
4323
+ }) => {
4324
+ if (!e)
4325
+ return;
4326
+ const t = await wr({
4327
+ name: Nr,
4328
+ canTrack: e
4329
+ });
4330
+ if (pe(t))
4331
+ return t;
4332
+ {
4333
+ const n = Zi();
4334
+ return Qi({
4335
+ id: n,
4336
+ canTrack: e
4337
+ }), n;
4338
+ }
4339
+ }, Zi = () => Pr(), Qi = ({
4340
+ id: e,
4341
+ canTrack: t
4342
+ }) => Sr({
4343
+ name: Nr,
4344
+ value: e,
4345
+ canTrack: t
4346
+ }), Mr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ea = ({
4347
+ key: e,
4348
+ canTrack: t
4349
+ }) => {
4165
4350
  var n;
4166
4351
  try {
4167
- return t ? (n = Ar()) == null ? void 0 : n.getItem(e) : void 0;
4352
+ return t ? (n = Mr()) == null ? void 0 : n.getItem(e) : void 0;
4168
4353
  } catch (r) {
4169
4354
  console.debug("[LocalStorage] GET error: ", r);
4170
4355
  return;
4171
4356
  }
4172
- }, Hi = ({
4357
+ }, ta = ({
4173
4358
  key: e,
4174
4359
  canTrack: t,
4175
4360
  value: n
4176
4361
  }) => {
4177
4362
  var r;
4178
4363
  try {
4179
- t && ((r = Ar()) == null || r.setItem(e, n));
4364
+ t && ((r = Mr()) == null || r.setItem(e, n));
4180
4365
  } catch (o) {
4181
4366
  console.debug("[LocalStorage] SET error: ", o);
4182
4367
  }
4183
- }, jr = "builderVisitorId", Ki = ({
4368
+ }, Br = "builderVisitorId", na = ({
4184
4369
  canTrack: e
4185
4370
  }) => {
4186
4371
  if (!e)
4187
4372
  return;
4188
- const t = Wi({
4189
- key: jr,
4373
+ const t = ea({
4374
+ key: Br,
4190
4375
  canTrack: e
4191
4376
  });
4192
4377
  if (pe(t))
4193
4378
  return t;
4194
4379
  {
4195
- const n = Gi();
4196
- return Xi({
4380
+ const n = ra();
4381
+ return oa({
4197
4382
  id: n,
4198
4383
  canTrack: e
4199
4384
  }), n;
4200
4385
  }
4201
- }, Gi = () => Ir(), Xi = ({
4386
+ }, ra = () => Pr(), oa = ({
4202
4387
  id: e,
4203
4388
  canTrack: t
4204
- }) => Hi({
4205
- key: jr,
4389
+ }) => ta({
4390
+ key: Br,
4206
4391
  value: e,
4207
4392
  canTrack: t
4208
- }), Ji = async ({
4393
+ }), ia = async ({
4209
4394
  canTrack: e
4210
4395
  }) => {
4211
4396
  if (!e)
@@ -4213,16 +4398,16 @@ const Tr = "builderSessionId", Li = async ({
4213
4398
  visitorId: void 0,
4214
4399
  sessionId: void 0
4215
4400
  };
4216
- const t = await Li({
4401
+ const t = await qi({
4217
4402
  canTrack: e
4218
- }), n = Ki({
4403
+ }), n = na({
4219
4404
  canTrack: e
4220
4405
  });
4221
4406
  return {
4222
4407
  sessionId: t,
4223
4408
  visitorId: n
4224
4409
  };
4225
- }, zi = async ({
4410
+ }, aa = async ({
4226
4411
  type: e,
4227
4412
  canTrack: t,
4228
4413
  apiKey: n,
@@ -4236,14 +4421,14 @@ const Tr = "builderSessionId", Li = async ({
4236
4421
  url: location.href,
4237
4422
  ...r
4238
4423
  },
4239
- ...await Ji({
4424
+ ...await ia({
4240
4425
  canTrack: t
4241
4426
  }),
4242
- userAttributes: fr(),
4427
+ userAttributes: cr(),
4243
4428
  ownerId: n
4244
4429
  }
4245
4430
  });
4246
- async function Yi(e) {
4431
+ async function sa(e) {
4247
4432
  if (!e.apiKey) {
4248
4433
  q.error("Missing API key for track call. Please provide your API key.");
4249
4434
  return;
@@ -4252,7 +4437,7 @@ async function Yi(e) {
4252
4437
  return fetch("https://cdn.builder.io/api/v1/track", {
4253
4438
  method: "POST",
4254
4439
  body: JSON.stringify({
4255
- events: [await zi(e)]
4440
+ events: [await aa(e)]
4256
4441
  }),
4257
4442
  headers: {
4258
4443
  "content-type": "application/json"
@@ -4262,13 +4447,56 @@ async function Yi(e) {
4262
4447
  console.error("Failed to track: ", t);
4263
4448
  });
4264
4449
  }
4265
- const ja = (e) => Yi({
4450
+ const Pa = (e) => sa({
4266
4451
  ...e,
4267
4452
  canTrack: !0
4268
- }), qi = "0.7.1-3", tr = {};
4269
- function Zi(e, t) {
4270
- let n = tr[e];
4271
- if (n || (n = tr[e] = []), n.push(t), G()) {
4453
+ });
4454
+ function rr(e) {
4455
+ return Math.round(e * 1e3) / 1e3;
4456
+ }
4457
+ const la = (e, t, n = !0) => {
4458
+ if (!(e instanceof HTMLElement))
4459
+ return null;
4460
+ let r = n ? e : e.parentElement;
4461
+ do {
4462
+ if (!r)
4463
+ return null;
4464
+ if (t(r))
4465
+ return r;
4466
+ } while (r = r.parentElement);
4467
+ return null;
4468
+ }, ca = (e) => la(e, (t) => {
4469
+ const n = t.getAttribute("builder-id") || t.id;
4470
+ return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4471
+ }), or = ({
4472
+ event: e,
4473
+ target: t
4474
+ }) => {
4475
+ const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = rr(r / n.width), s = rr(o / n.height);
4476
+ return {
4477
+ x: i,
4478
+ y: s
4479
+ };
4480
+ }, Na = (e) => {
4481
+ const t = e.target, n = t && ca(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4482
+ return {
4483
+ targetBuilderElement: r || void 0,
4484
+ metadata: {
4485
+ targetOffset: t ? or({
4486
+ event: e,
4487
+ target: t
4488
+ }) : void 0,
4489
+ builderTargetOffset: n ? or({
4490
+ event: e,
4491
+ target: n
4492
+ }) : void 0,
4493
+ builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4494
+ }
4495
+ };
4496
+ }, ua = "0.7.1", ir = {};
4497
+ function fa(e, t) {
4498
+ let n = ir[e];
4499
+ if (n || (n = ir[e] = []), n.push(t), G()) {
4272
4500
  const r = {
4273
4501
  type: "builder.register",
4274
4502
  data: {
@@ -4283,8 +4511,8 @@ function Zi(e, t) {
4283
4511
  }
4284
4512
  }
4285
4513
  }
4286
- const Oa = () => {
4287
- Zi("insertMenu", {
4514
+ const Ma = () => {
4515
+ fa("insertMenu", {
4288
4516
  name: "_default",
4289
4517
  default: !0,
4290
4518
  items: [{
@@ -4306,14 +4534,14 @@ const Oa = () => {
4306
4534
  }]
4307
4535
  });
4308
4536
  };
4309
- let nr = !1;
4310
- const Ra = (e = {}) => {
4537
+ let ar = !1;
4538
+ const Ba = (e = {}) => {
4311
4539
  var t, n;
4312
- nr || (nr = !0, G() && ((t = window.parent) == null || t.postMessage({
4540
+ ar || (ar = !0, G() && ((t = window.parent) == null || t.postMessage({
4313
4541
  type: "builder.sdkInfo",
4314
4542
  data: {
4315
4543
  target: xe,
4316
- version: qi,
4544
+ version: ua,
4317
4545
  supportsPatchUpdates: !1,
4318
4546
  // Supports builder-model="..." attribute which is needed to
4319
4547
  // scope our '+ add block' button styling
@@ -4332,18 +4560,18 @@ const Ra = (e = {}) => {
4332
4560
  if (r != null && r.type)
4333
4561
  switch (r.type) {
4334
4562
  case "builder.evaluate": {
4335
- const s = r.data.text, f = r.data.arguments || [], p = r.data.id, g = new Function(s);
4336
- let v, b = null;
4563
+ const s = r.data.text, u = r.data.arguments || [], p = r.data.id, g = new Function(s);
4564
+ let v, w = null;
4337
4565
  try {
4338
- v = g.apply(null, f);
4566
+ v = g.apply(null, u);
4339
4567
  } catch (N) {
4340
- b = N;
4568
+ w = N;
4341
4569
  }
4342
- b ? (o = window.parent) == null || o.postMessage({
4570
+ w ? (o = window.parent) == null || o.postMessage({
4343
4571
  type: "builder.evaluateError",
4344
4572
  data: {
4345
4573
  id: p,
4346
- error: b.message
4574
+ error: w.message
4347
4575
  }
4348
4576
  }, "*") : v && typeof v.then == "function" ? v.then((N) => {
4349
4577
  var E;
@@ -4365,304 +4593,102 @@ const Ra = (e = {}) => {
4365
4593
  }
4366
4594
  }
4367
4595
  })));
4368
- };
4369
- function rr(e) {
4370
- return Math.round(e * 1e3) / 1e3;
4596
+ }, pa = (e) => {
4597
+ var i;
4598
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4599
+ let o = "";
4600
+ if (r && t && n && (o += `
4601
+ @font-face {
4602
+ font-family: "${t}";
4603
+ src: local("${n}"), url('${r}') format('woff2');
4604
+ font-display: fallback;
4605
+ font-weight: 400;
4371
4606
  }
4372
- const Qi = (e, t, n = !0) => {
4373
- if (!(e instanceof HTMLElement))
4374
- return null;
4375
- let r = n ? e : e.parentElement;
4376
- do {
4377
- if (!r)
4378
- return null;
4379
- if (t(r))
4380
- return r;
4381
- } while (r = r.parentElement);
4382
- return null;
4383
- }, ea = (e) => Qi(e, (t) => {
4384
- const n = t.getAttribute("builder-id") || t.id;
4385
- return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4386
- }), or = ({
4387
- event: e,
4388
- target: t
4389
- }) => {
4390
- const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = rr(r / n.width), s = rr(o / n.height);
4391
- return {
4392
- x: i,
4393
- y: s
4394
- };
4395
- }, Pa = (e) => {
4396
- const t = e.target, n = t && ea(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4397
- return {
4398
- targetBuilderElement: r || void 0,
4399
- metadata: {
4400
- targetOffset: t ? or({
4401
- event: e,
4402
- target: t
4403
- }) : void 0,
4404
- builderTargetOffset: n ? or({
4405
- event: e,
4406
- target: n
4407
- }) : void 0,
4408
- builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4607
+ `.trim()), e.files)
4608
+ for (const s in e.files) {
4609
+ if (!(String(Number(s)) === s))
4610
+ continue;
4611
+ const p = e.files[s];
4612
+ p && p !== r && (o += `
4613
+ @font-face {
4614
+ font-family: "${t}";
4615
+ src: url('${p}') format('woff2');
4616
+ font-display: fallback;
4617
+ font-weight: ${s};
4618
+ }
4619
+ `.trim());
4409
4620
  }
4410
- };
4411
- }, ta = "builder.tests", cn = (e) => `${ta}.${e}`, na = ({
4412
- contentId: e
4413
- }) => Cr({
4414
- name: cn(e),
4415
- canTrack: !0
4416
- }), ra = ({
4417
- contentId: e
4418
- }) => kr({
4419
- name: cn(e),
4420
- canTrack: !0
4421
- }), oa = ({
4422
- contentId: e,
4423
- value: t
4424
- }) => Er({
4425
- name: cn(e),
4426
- value: t,
4427
- canTrack: !0
4428
- }), Or = (e) => pe(e.id) && pe(e.variations) && Object.keys(e.variations).length > 0, ia = ({
4429
- id: e,
4430
- variations: t
4431
- }) => {
4432
- var o;
4433
- let n = 0;
4434
- const r = Math.random();
4435
- for (const i in t) {
4436
- const s = (o = t[i]) == null ? void 0 : o.testRatio;
4437
- if (n += s, r < n)
4438
- return i;
4439
- }
4440
- return e;
4441
- }, Rr = (e) => {
4442
- const t = ia(e);
4443
- return oa({
4444
- contentId: e.id,
4445
- value: t
4446
- }).catch((n) => {
4447
- q.error("could not store A/B test variation: ", n);
4448
- }), t;
4449
- }, Pr = ({
4450
- item: e,
4451
- testGroupId: t
4621
+ return o;
4622
+ }, ha = ({
4623
+ customFonts: e
4452
4624
  }) => {
4453
- const n = e.variations[t];
4454
- return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
4455
- !n ? {
4456
- testVariationId: e.id,
4457
- testVariationName: "Default"
4458
- } : {
4459
- data: n.data,
4460
- testVariationId: n.id,
4461
- testVariationName: n.name || (n.id === e.id ? "Default" : "")
4462
- };
4463
- }, aa = ({
4464
- item: e,
4465
- canTrack: t
4625
+ var t;
4626
+ return ((t = e == null ? void 0 : e.map((n) => pa(n))) == null ? void 0 : t.join(" ")) || "";
4627
+ }, da = ({
4628
+ cssCode: e,
4629
+ contentId: t
4630
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4631
+ function ma(e) {
4632
+ const t = `
4633
+ ${da({
4634
+ cssCode: e.cssCode,
4635
+ contentId: e.contentId
4636
+ })}
4637
+ ${ha({
4638
+ customFonts: e.customFonts
4639
+ })}
4640
+
4641
+ .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
4642
+ margin: 0;
4643
+ }
4644
+ .builder-text > p, .builder-text > .builder-paragraph {
4645
+ color: inherit;
4646
+ line-height: inherit;
4647
+ letter-spacing: inherit;
4648
+ font-weight: inherit;
4649
+ font-size: inherit;
4650
+ text-align: inherit;
4651
+ font-family: inherit;
4652
+ }
4653
+ `.trim();
4654
+ return /* @__PURE__ */ I(ht, { styles: t });
4655
+ }
4656
+ const ga = ({
4657
+ content: e,
4658
+ data: t,
4659
+ locale: n
4466
4660
  }) => {
4467
- if (!t)
4468
- return e;
4469
- if (!e)
4470
- return;
4471
- if (!Or(e))
4472
- return e;
4473
- const n = ra({
4474
- contentId: e.id
4475
- }) || Rr({
4476
- variations: e.variations,
4477
- id: e.id
4478
- }), r = Pr({
4479
- item: e,
4480
- testGroupId: n
4661
+ var i, s, u;
4662
+ const r = {};
4663
+ (s = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || s.forEach((p) => {
4664
+ var g;
4665
+ p.name && p.defaultValue !== void 0 && ((g = e == null ? void 0 : e.data) != null && g.state) && e.data.state[p.name] === void 0 && (r[p.name] = p.defaultValue);
4481
4666
  });
4482
- return {
4483
- ...e,
4484
- ...r
4667
+ const o = {
4668
+ ...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
4669
+ ...t,
4670
+ ...n ? {
4671
+ locale: n
4672
+ } : {}
4485
4673
  };
4486
- }, sa = async ({
4487
- item: e,
4488
- canTrack: t
4489
- }) => {
4490
- if (!t || !Or(e))
4491
- return e;
4492
- const r = await na({
4493
- contentId: e.id
4494
- }) || Rr({
4495
- variations: e.variations,
4496
- id: e.id
4497
- }), o = Pr({
4498
- item: e,
4499
- testGroupId: r
4500
- });
4501
4674
  return {
4502
- ...e,
4675
+ ...r,
4503
4676
  ...o
4504
4677
  };
4505
- }, Kt = (e) => pe(e) ? e : !0, la = (e) => {
4506
- const t = e.get("preview"), n = e.get("overrides." + t);
4507
- return n || q.warn("No previewed ID found in search params."), n;
4508
- };
4509
- function ca() {
4510
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
4511
- max: 500,
4512
- // how long to live in ms
4513
- ttl: 1e3 * 60 * 5
4514
- }));
4515
- }
4516
- function ua(e) {
4517
- ca();
4518
- const t = la(e);
4519
- return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4520
- }
4521
- function lt(e, t = null, n = ".") {
4522
- return Object.keys(e).reduce((r, o) => {
4523
- const i = e[o], s = [t, o].filter(Boolean).join(n);
4524
- return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
4525
- ...r,
4526
- ...lt(i, s, n)
4527
- } : {
4528
- ...r,
4529
- [s]: i
4530
- };
4531
- }, {});
4532
- }
4533
- const ir = "builder.", fa = "options.", pa = (e) => {
4534
- const t = {};
4535
- return e.forEach((n, r) => {
4536
- t[r] = n;
4537
- }), t;
4538
- }, Nr = (e) => {
4539
- if (!e)
4540
- return {};
4541
- const t = Mr(e), n = {};
4542
- return Object.keys(t).forEach((r) => {
4543
- if (r.startsWith(ir)) {
4544
- const o = r.replace(ir, "").replace(fa, "");
4545
- n[o] = t[r];
4546
- }
4547
- }), n;
4548
- }, ha = () => {
4549
- if (!G())
4550
- return {};
4551
- const e = new URLSearchParams(window.location.search);
4552
- return Nr(e);
4553
- }, Mr = (e) => e instanceof URLSearchParams ? pa(e) : e, da = "v3", ar = (e) => typeof e == "number" && !isNaN(e) && e >= 0, un = (e) => {
4554
- let {
4555
- noTraverse: t = !1
4556
- } = e;
4557
- const {
4558
- limit: n = 30,
4559
- userAttributes: r,
4560
- query: o,
4561
- model: i,
4562
- apiKey: s,
4563
- includeRefs: f = !0,
4564
- enrich: p,
4565
- locale: g,
4566
- apiVersion: v = da,
4567
- fields: b,
4568
- omit: N,
4569
- offset: E,
4570
- cacheSeconds: S,
4571
- staleCacheSeconds: y,
4572
- sort: P,
4573
- includeUnpublished: F
4574
- } = e;
4575
- if (!s)
4576
- throw new Error("Missing API key");
4577
- if (!["v2", "v3"].includes(v))
4578
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
4579
- (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
4580
- const m = new URL(`https://cdn.builder.io/api/${v}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${f}${g ? `&locale=${g}` : ""}${p ? `&enrich=${p}` : ""}`);
4581
- if (m.searchParams.set("omit", N || "meta.componentsUsed"), b && m.searchParams.set("fields", b), Number.isFinite(E) && E > -1 && m.searchParams.set("offset", String(Math.floor(E))), typeof F == "boolean" && m.searchParams.set("includeUnpublished", String(F)), S && ar(S) && m.searchParams.set("cacheSeconds", String(S)), y && ar(y) && m.searchParams.set("staleCacheSeconds", String(y)), P) {
4582
- const Z = lt({
4583
- sort: P
4584
- });
4585
- for (const U in Z)
4586
- m.searchParams.set(U, JSON.stringify(Z[U]));
4587
- }
4588
- const he = {
4589
- ...ha(),
4590
- ...Mr(e.options || {})
4591
- }, de = lt(he);
4592
- for (const Z in de)
4593
- m.searchParams.set(Z, String(de[Z]));
4594
- if (r && m.searchParams.set("userAttributes", JSON.stringify(r)), o) {
4595
- const Z = lt({
4596
- query: o
4597
- });
4598
- for (const U in Z)
4599
- m.searchParams.set(U, JSON.stringify(Z[U]));
4600
- }
4601
- return m;
4602
- }, ma = (e) => "results" in e;
4603
- async function fn(e) {
4604
- const t = await Fr({
4605
- ...e,
4606
- limit: 1
4607
- });
4608
- return t && t.results[0] || null;
4609
- }
4610
- const Na = fn, ga = async (e) => {
4611
- const t = un(e);
4612
- return await (await Mi(t.href)).json();
4613
- }, ya = async (e, t, n = un(e)) => {
4614
- const r = Kt(e.canTrack);
4615
- if (n.search.includes("preview=")) {
4616
- const i = [];
4617
- for (const s of t.results) {
4618
- const f = ua(n.searchParams);
4619
- i.push(f || s);
4620
- }
4621
- t.results = i;
4622
- }
4623
- if (!r || !(G() || xe === "reactNative"))
4624
- return t;
4625
- try {
4626
- const i = [];
4627
- for (const s of t.results)
4628
- i.push(await sa({
4629
- item: s,
4630
- canTrack: r
4631
- }));
4632
- t.results = i;
4633
- } catch (i) {
4634
- q.error("Could not process A/B tests. ", i);
4635
- }
4636
- return t;
4637
- };
4638
- async function Fr(e) {
4639
- try {
4640
- const t = un(e), n = await ga(e);
4641
- return ma(n) ? ya(e, n) : (q.error("Error fetching data. ", {
4642
- url: t,
4643
- content: n,
4644
- options: e
4645
- }), null);
4646
- } catch (t) {
4647
- return q.error("Error fetching data. ", t), null;
4648
- }
4649
- }
4650
- const Ma = Fr;
4651
- function Fa() {
4652
- return !G() || Xt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4653
- }
4654
- function Gt(e) {
4655
- return /* @__PURE__ */ I(
4656
- "script",
4657
- {
4658
- dangerouslySetInnerHTML: { __html: e.scriptStr },
4659
- id: e.id
4660
- }
4661
- );
4662
- }
4678
+ }, ya = ({
4679
+ content: e,
4680
+ data: t
4681
+ }) => e ? {
4682
+ ...e,
4683
+ data: {
4684
+ ...e == null ? void 0 : e.data,
4685
+ ...t
4686
+ },
4687
+ meta: e == null ? void 0 : e.meta
4688
+ } : void 0;
4663
4689
  function sr(e) {
4664
- var o, i, s, f, p, g, v, b, N;
4665
- const t = ui({
4690
+ var o, i, s, u, p, g, v, w, N;
4691
+ const t = Fi({
4666
4692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4667
4693
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4668
4694
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4681,17 +4707,17 @@ function sr(e) {
4681
4707
  ...E,
4682
4708
  [y.name]: {
4683
4709
  component: S,
4684
- ...Ht(y)
4710
+ ...Kt(y)
4685
4711
  }
4686
4712
  }),
4687
4713
  {}
4688
4714
  ), r = {
4689
- content: Ri({
4715
+ content: ya({
4690
4716
  content: e.content,
4691
4717
  data: e.data
4692
4718
  }),
4693
4719
  localState: void 0,
4694
- rootState: Oi({
4720
+ rootState: ga({
4695
4721
  content: e.content,
4696
4722
  data: e.data,
4697
4723
  locale: e.locale
@@ -4712,7 +4738,7 @@ function sr(e) {
4712
4738
  ].reduce(
4713
4739
  (E, { component: S, ...y }) => ({
4714
4740
  ...E,
4715
- [y.name]: Ht(y)
4741
+ [y.name]: Kt(y)
4716
4742
  }),
4717
4743
  {}
4718
4744
  ),
@@ -4735,17 +4761,17 @@ function sr(e) {
4735
4761
  children: [
4736
4762
  e.isSsrAbTest ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(Gt, { scriptStr: t }) }) : null,
4737
4763
  /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(
4738
- ji,
4764
+ ma,
4739
4765
  {
4740
4766
  contentId: (s = r.content) == null ? void 0 : s.id,
4741
- cssCode: (p = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : p.cssCode,
4767
+ cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
4742
4768
  customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
4743
4769
  }
4744
4770
  ) }),
4745
4771
  /* @__PURE__ */ I(
4746
4772
  ln,
4747
4773
  {
4748
- blocks: (N = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : N.blocks,
4774
+ blocks: (N = (w = r.content) == null ? void 0 : w.data) == null ? void 0 : N.blocks,
4749
4775
  context: r,
4750
4776
  registeredComponents: n
4751
4777
  }
@@ -4754,14 +4780,14 @@ function sr(e) {
4754
4780
  }
4755
4781
  );
4756
4782
  }
4757
- function Ur(e) {
4758
- var i, s, f;
4759
- const t = oi({
4760
- canTrack: Kt(e.canTrack),
4783
+ function Fr(e) {
4784
+ var i, s, u;
4785
+ const t = Oi({
4786
+ canTrack: Ht(e.canTrack),
4761
4787
  content: e.content
4762
4788
  }), n = function() {
4763
4789
  var g;
4764
- return ci(
4790
+ return Bi(
4765
4791
  st(e.content).map((v) => ({
4766
4792
  id: v.testVariationId,
4767
4793
  testRatio: v.testRatio
@@ -4775,13 +4801,13 @@ function Ur(e) {
4775
4801
  return t ? {
4776
4802
  ...e.content,
4777
4803
  testVariationId: (g = e.content) == null ? void 0 : g.id
4778
- } : aa({
4804
+ } : hi({
4779
4805
  item: e.content,
4780
- canTrack: Kt(e.canTrack)
4806
+ canTrack: Ht(e.canTrack)
4781
4807
  });
4782
4808
  };
4783
4809
  return /* @__PURE__ */ ue(L, { children: [
4784
- !e.__isNestedRender && xe !== "reactNative" ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(Gt, { scriptStr: li() }) }) : null,
4810
+ !e.__isNestedRender && xe !== "reactNative" ? /* @__PURE__ */ I(L, { children: /* @__PURE__ */ I(Gt, { scriptStr: Mi() }) }) : null,
4785
4811
  t ? /* @__PURE__ */ ue(L, { children: [
4786
4812
  /* @__PURE__ */ I(
4787
4813
  ht,
@@ -4816,7 +4842,7 @@ function Ur(e) {
4816
4842
  sr,
4817
4843
  {
4818
4844
  content: o(),
4819
- classNameProp: `variant-${(f = e.content) == null ? void 0 : f.id}`,
4845
+ classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
4820
4846
  showContent: !0,
4821
4847
  model: e.model,
4822
4848
  data: e.data,
@@ -4867,7 +4893,7 @@ async function xa(e) {
4867
4893
  builderContextValue: e.builderContext
4868
4894
  });
4869
4895
  return /* @__PURE__ */ I("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ I(
4870
- Ur,
4896
+ Fr,
4871
4897
  {
4872
4898
  __isNestedRender: !0,
4873
4899
  apiVersion: e.builderContext.apiVersion,
@@ -4884,7 +4910,7 @@ async function xa(e) {
4884
4910
  }
4885
4911
  ) });
4886
4912
  }
4887
- const Ua = ln, Ba = Ur, lr = {};
4913
+ const Fa = ln, Ua = Fr, lr = {};
4888
4914
  function Va(e) {
4889
4915
  if (G()) {
4890
4916
  Object.assign(lr, e);
@@ -4907,7 +4933,7 @@ const _a = async (e) => {
4907
4933
  urlPath: t
4908
4934
  } : {}
4909
4935
  },
4910
- options: Nr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
4936
+ options: jr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
4911
4937
  };
4912
4938
  return {
4913
4939
  apiKey: n.apiKey,
@@ -4916,39 +4942,39 @@ const _a = async (e) => {
4916
4942
  };
4917
4943
  };
4918
4944
  export {
4919
- Nr as A,
4945
+ jr as A,
4920
4946
  ln as B,
4921
- Ur as C,
4922
- ja as D,
4947
+ Fr as C,
4948
+ Pa as D,
4923
4949
  _a as E,
4924
- Ua as R,
4950
+ Fa as R,
4925
4951
  xa as S,
4926
- vi as T,
4927
- Yi as _,
4952
+ Ii as T,
4953
+ sa as _,
4928
4954
  Ea as a,
4929
4955
  Ia as b,
4930
4956
  Ta as c,
4931
4957
  G as d,
4932
- Kt as e,
4933
- Fa as f,
4934
- Zo as g,
4958
+ Ht as e,
4959
+ Ra as f,
4960
+ qo as g,
4935
4961
  an as h,
4936
4962
  Xt as i,
4937
- Pa as j,
4938
- ut as k,
4963
+ Na as j,
4964
+ pt as k,
4939
4965
  q as l,
4940
4966
  Aa as m,
4941
4967
  fn as n,
4942
- Mi as o,
4943
- ca as p,
4944
- Ba as q,
4945
- Oa as r,
4946
- Ra as s,
4968
+ Di as o,
4969
+ Vi as p,
4970
+ Ua as q,
4971
+ Ma as r,
4972
+ Ba as s,
4947
4973
  ti as t,
4948
- Zi as u,
4974
+ fa as u,
4949
4975
  Va as v,
4950
- Fr as w,
4951
- Ma as x,
4952
- Na as y,
4953
- ya as z
4976
+ zi as w,
4977
+ Rr as x,
4978
+ Oa as y,
4979
+ ja as z
4954
4980
  };