@builder.io/sdk-vue 0.6.2 → 0.6.4

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 (189) hide show
  1. package/package.json +1 -1
  2. package/vue2/lib/{edge/block-a17dd5f3.js → browser/block-7623343e.js} +7 -7
  3. package/vue2/lib/browser/{block-7572b272.cjs → block-f8ec39b9.cjs} +2 -2
  4. package/vue2/lib/browser/block-styles-442c9444.cjs +1 -0
  5. package/vue2/lib/browser/block-styles-78f1fc51.js +82 -0
  6. package/vue2/lib/browser/{block-wrapper-73003591.cjs → block-wrapper-04c09786.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-7137e4eb.js → block-wrapper-d129f149.js} +5 -5
  8. package/vue2/lib/{node/blocks-wrapper-9f1e75a3.js → browser/blocks-wrapper-744d9c88.js} +1 -1
  9. package/vue2/lib/{edge/blocks-wrapper-4e301a45.cjs → browser/blocks-wrapper-ffcf193b.cjs} +1 -1
  10. package/vue2/lib/{edge/component-ref-47c7b4b9.js → browser/component-ref-ad91463a.js} +6 -6
  11. package/vue2/lib/{edge/component-ref-46ff36c7.cjs → browser/component-ref-c0bc64bb.cjs} +1 -1
  12. package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +0 -1
  13. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  14. package/vue2/lib/{edge/content-dba5c9d2.js → browser/content-59001c88.js} +5 -5
  15. package/vue2/lib/browser/{content-284be2c3.cjs → content-6391e001.cjs} +1 -1
  16. package/vue2/lib/browser/{css-01587ac9.js → css-5244a373.js} +1 -1
  17. package/vue2/lib/{node/css-924d8859.cjs → browser/css-e268cc90.cjs} +1 -1
  18. package/vue2/lib/{edge/enable-editor-985c44d4.js → browser/enable-editor-0ec0fba2.js} +3 -3
  19. package/vue2/lib/browser/enable-editor-68f3b7d1.cjs +1 -0
  20. package/vue2/lib/browser/{evaluate-34eb09eb.js → evaluate-81e9d18d.js} +1 -1
  21. package/vue2/lib/browser/{evaluate-3b22ca76.cjs → evaluate-c6468e7e.cjs} +1 -1
  22. package/vue2/lib/browser/functions/fetch-builder-props.d.ts +13 -0
  23. package/vue2/lib/{node/get-block-actions-2147e6cd.js → browser/get-block-actions-19c074c1.js} +2 -2
  24. package/vue2/lib/browser/{get-block-actions-55e90df6.cjs → get-block-actions-72575937.cjs} +1 -1
  25. package/vue2/lib/browser/{get-block-properties-58c54a69.js → get-block-properties-8bd6705f.js} +2 -2
  26. package/vue2/lib/{node/get-block-properties-2f43ed48.cjs → browser/get-block-properties-a61a4f44.cjs} +1 -1
  27. package/vue2/lib/{node/get-processed-block-a2ff4c51.js → browser/get-processed-block-5ea5ad51.js} +2 -2
  28. package/vue2/lib/browser/{get-processed-block-15b0d499.cjs → get-processed-block-df5bc2af.cjs} +1 -1
  29. package/vue2/lib/{node/index-31b135ac.cjs → browser/index-4480d5e4.cjs} +3 -3
  30. package/vue2/lib/{node/index-20a64e56.js → browser/index-cd218de0.js} +39 -39
  31. package/vue2/lib/browser/index.cjs +1 -1
  32. package/vue2/lib/browser/index.js +1 -1
  33. package/vue2/lib/{edge/inlined-script-58f8fb7e.js → browser/inlined-script-4f903f8e.js} +1 -1
  34. package/vue2/lib/browser/{inlined-script-395a54bf.cjs → inlined-script-b9da40ba.cjs} +1 -1
  35. package/vue2/lib/{node/inlined-styles-6ad3b97d.cjs → browser/inlined-styles-86ba9613.cjs} +1 -1
  36. package/vue2/lib/{node/inlined-styles-5f724636.js → browser/inlined-styles-cb8ac12b.js} +1 -1
  37. package/vue2/lib/{node/interactive-element-91844a73.cjs → browser/interactive-element-7034b3c2.cjs} +1 -1
  38. package/vue2/lib/{node/interactive-element-9a3140c7.js → browser/interactive-element-c2e016e7.js} +5 -5
  39. package/vue2/lib/browser/{repeated-block-2801e2ad.cjs → repeated-block-515aea68.cjs} +1 -1
  40. package/vue2/lib/{node/repeated-block-db085f7a.js → browser/repeated-block-82b3437a.js} +2 -2
  41. package/vue2/lib/browser/{styles-c675d986.js → styles-b9bdec6e.js} +2 -2
  42. package/vue2/lib/browser/{styles-1aad0890.cjs → styles-f43008cc.cjs} +2 -2
  43. package/vue2/lib/browser/types/components.d.ts +0 -1
  44. package/vue2/lib/{node/block-7572b272.cjs → edge/block-33134063.cjs} +2 -2
  45. package/vue2/lib/{browser/block-c120af6b.js → edge/block-9a136438.js} +7 -7
  46. package/vue2/lib/edge/block-styles-293e6520.js +82 -0
  47. package/vue2/lib/edge/block-styles-d41b334a.cjs +1 -0
  48. package/vue2/lib/{node/block-wrapper-7137e4eb.js → edge/block-wrapper-2f05e945.js} +5 -5
  49. package/vue2/lib/edge/{block-wrapper-224770b5.cjs → block-wrapper-e6bc8771.cjs} +1 -1
  50. package/vue2/lib/{browser/blocks-wrapper-b4d967ac.cjs → edge/blocks-wrapper-c1a59075.cjs} +1 -1
  51. package/vue2/lib/edge/{blocks-wrapper-e865d99a.js → blocks-wrapper-d1b2c241.js} +1 -1
  52. package/vue2/lib/{node/component-ref-b509786c.js → edge/component-ref-bac7483e.js} +6 -6
  53. package/vue2/lib/{node/component-ref-da79bed8.cjs → edge/component-ref-f49d33aa.cjs} +1 -1
  54. package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +0 -1
  55. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  56. package/vue2/lib/{browser/content-adf884f8.js → edge/content-dd98b5f2.js} +5 -5
  57. package/vue2/lib/{node/content-284be2c3.cjs → edge/content-ee5058bf.cjs} +1 -1
  58. package/vue2/lib/{browser/css-924d8859.cjs → edge/css-6d51b919.cjs} +1 -1
  59. package/vue2/lib/{node/css-01587ac9.js → edge/css-a40d0ce1.js} +1 -1
  60. package/vue2/lib/edge/enable-editor-86cc8a4d.cjs +1 -0
  61. package/vue2/lib/{node/enable-editor-872f651f.js → edge/enable-editor-aeb1f840.js} +3 -3
  62. package/vue2/lib/edge/{evaluate-d1682114.cjs → evaluate-16c456b4.cjs} +1 -1
  63. package/vue2/lib/edge/{evaluate-60a4358c.js → evaluate-5aed4676.js} +1 -1
  64. package/vue2/lib/edge/functions/fetch-builder-props.d.ts +13 -0
  65. package/vue2/lib/{browser/get-block-actions-2147e6cd.js → edge/get-block-actions-350bc978.js} +2 -2
  66. package/vue2/lib/edge/{get-block-actions-70f0ddb1.cjs → get-block-actions-877fd5f9.cjs} +1 -1
  67. package/vue2/lib/edge/{get-block-properties-26d44344.js → get-block-properties-8b0da7b7.js} +2 -2
  68. package/vue2/lib/{browser/get-block-properties-2f43ed48.cjs → edge/get-block-properties-ece4e040.cjs} +1 -1
  69. package/vue2/lib/edge/{get-processed-block-6bfaca9c.cjs → get-processed-block-ccaa4214.cjs} +1 -1
  70. package/vue2/lib/edge/{get-processed-block-d3436370.js → get-processed-block-f0bfcc66.js} +2 -2
  71. package/vue2/lib/edge/{index-a83a44e7.cjs → index-df9193d2.cjs} +3 -3
  72. package/vue2/lib/{browser/index-20a64e56.js → edge/index-f8dc2e35.js} +39 -39
  73. package/vue2/lib/edge/index.cjs +1 -1
  74. package/vue2/lib/edge/index.js +1 -1
  75. package/vue2/lib/{node/inlined-script-dd1c2277.js → edge/inlined-script-1c876548.js} +1 -1
  76. package/vue2/lib/{node/inlined-script-395a54bf.cjs → edge/inlined-script-44721dc7.cjs} +1 -1
  77. package/vue2/lib/edge/{inlined-styles-f19ba9ed.js → inlined-styles-7ebd6646.js} +1 -1
  78. package/vue2/lib/{browser/inlined-styles-6ad3b97d.cjs → edge/inlined-styles-eb80e4fe.cjs} +1 -1
  79. package/vue2/lib/{browser/interactive-element-91844a73.cjs → edge/interactive-element-3eaf0e7a.cjs} +1 -1
  80. package/vue2/lib/{browser/interactive-element-9a3140c7.js → edge/interactive-element-64d11339.js} +5 -5
  81. package/vue2/lib/edge/{repeated-block-5d01ffbd.cjs → repeated-block-446ae014.cjs} +1 -1
  82. package/vue2/lib/{browser/repeated-block-db085f7a.js → edge/repeated-block-b9a8feeb.js} +2 -2
  83. package/vue2/lib/{node/styles-1aad0890.cjs → edge/styles-36552ab4.cjs} +2 -2
  84. package/vue2/lib/{node/styles-c675d986.js → edge/styles-cfea6654.js} +2 -2
  85. package/vue2/lib/edge/types/components.d.ts +0 -1
  86. package/vue2/lib/node/{block-c120af6b.js → block-7623343e.js} +7 -7
  87. package/vue2/lib/{edge/block-89ebff36.cjs → node/block-f8ec39b9.cjs} +2 -2
  88. package/vue2/lib/node/block-styles-442c9444.cjs +1 -0
  89. package/vue2/lib/node/block-styles-78f1fc51.js +82 -0
  90. package/vue2/lib/node/{block-wrapper-73003591.cjs → block-wrapper-04c09786.cjs} +1 -1
  91. package/vue2/lib/{edge/block-wrapper-1d8816f6.js → node/block-wrapper-d129f149.js} +5 -5
  92. package/vue2/lib/{browser/blocks-wrapper-9f1e75a3.js → node/blocks-wrapper-744d9c88.js} +1 -1
  93. package/vue2/lib/node/{blocks-wrapper-b4d967ac.cjs → blocks-wrapper-ffcf193b.cjs} +1 -1
  94. package/vue2/lib/{browser/component-ref-b509786c.js → node/component-ref-ad91463a.js} +6 -6
  95. package/vue2/lib/{browser/component-ref-da79bed8.cjs → node/component-ref-c0bc64bb.cjs} +1 -1
  96. package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +0 -1
  97. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  98. package/vue2/lib/node/{content-adf884f8.js → content-59001c88.js} +5 -5
  99. package/vue2/lib/{edge/content-c1d216c0.cjs → node/content-6391e001.cjs} +1 -1
  100. package/vue2/lib/{edge/css-384211ae.js → node/css-5244a373.js} +1 -1
  101. package/vue2/lib/{edge/css-f5a4c224.cjs → node/css-e268cc90.cjs} +1 -1
  102. package/vue2/lib/{browser/enable-editor-872f651f.js → node/enable-editor-0ec0fba2.js} +3 -3
  103. package/vue2/lib/node/enable-editor-68f3b7d1.cjs +1 -0
  104. package/vue2/lib/node/{evaluate-34eb09eb.js → evaluate-81e9d18d.js} +1 -1
  105. package/vue2/lib/node/{evaluate-3b22ca76.cjs → evaluate-c6468e7e.cjs} +1 -1
  106. package/vue2/lib/node/functions/fetch-builder-props.d.ts +13 -0
  107. package/vue2/lib/{edge/get-block-actions-30acfe84.js → node/get-block-actions-19c074c1.js} +2 -2
  108. package/vue2/lib/node/{get-block-actions-55e90df6.cjs → get-block-actions-72575937.cjs} +1 -1
  109. package/vue2/lib/node/{get-block-properties-58c54a69.js → get-block-properties-8bd6705f.js} +2 -2
  110. package/vue2/lib/{edge/get-block-properties-e47eac50.cjs → node/get-block-properties-a61a4f44.cjs} +1 -1
  111. package/vue2/lib/{browser/get-processed-block-a2ff4c51.js → node/get-processed-block-5ea5ad51.js} +2 -2
  112. package/vue2/lib/node/{get-processed-block-15b0d499.cjs → get-processed-block-df5bc2af.cjs} +1 -1
  113. package/vue2/lib/{browser/index-31b135ac.cjs → node/index-4480d5e4.cjs} +3 -3
  114. package/vue2/lib/{edge/index-84b65a4f.js → node/index-cd218de0.js} +39 -39
  115. package/vue2/lib/node/index.cjs +1 -1
  116. package/vue2/lib/node/index.js +1 -1
  117. package/vue2/lib/{browser/inlined-script-dd1c2277.js → node/inlined-script-4f903f8e.js} +1 -1
  118. package/vue2/lib/{edge/inlined-script-c7731507.cjs → node/inlined-script-b9da40ba.cjs} +1 -1
  119. package/vue2/lib/{edge/inlined-styles-fac668de.cjs → node/inlined-styles-86ba9613.cjs} +1 -1
  120. package/vue2/lib/{browser/inlined-styles-5f724636.js → node/inlined-styles-cb8ac12b.js} +1 -1
  121. package/vue2/lib/{edge/interactive-element-f7ebf39a.cjs → node/interactive-element-7034b3c2.cjs} +1 -1
  122. package/vue2/lib/{edge/interactive-element-086120dd.js → node/interactive-element-c2e016e7.js} +5 -5
  123. package/vue2/lib/node/{repeated-block-2801e2ad.cjs → repeated-block-515aea68.cjs} +1 -1
  124. package/vue2/lib/{edge/repeated-block-8d023e60.js → node/repeated-block-82b3437a.js} +2 -2
  125. package/vue2/lib/{edge/styles-dafbc021.js → node/styles-b9bdec6e.js} +2 -2
  126. package/vue2/lib/{edge/styles-022c2ac6.cjs → node/styles-f43008cc.cjs} +2 -2
  127. package/vue2/lib/node/types/components.d.ts +0 -1
  128. package/vue3/lib/browser/{block-wrapper.ae2637e5.cjs → block-wrapper.1501b793.cjs} +1 -1
  129. package/vue3/lib/{edge/block-wrapper.5020430a.js → browser/block-wrapper.d71006fa.js} +2 -2
  130. package/vue3/lib/{edge/component-ref.1af99a31.js → browser/component-ref.104f0d16.js} +2 -2
  131. package/vue3/lib/{edge/component-ref.0528b1a0.cjs → browser/component-ref.4f5f964f.cjs} +1 -1
  132. package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +0 -1
  133. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  134. package/vue3/lib/browser/functions/fetch-builder-props.d.ts +13 -0
  135. package/vue3/lib/{edge/get-block-actions.8e0880b9.js → browser/get-block-actions.12becb73.js} +1 -1
  136. package/vue3/lib/{edge/get-block-actions.cdcc68a3.cjs → browser/get-block-actions.316f88d7.cjs} +1 -1
  137. package/vue3/lib/browser/index.2b9eb004.cjs +69 -0
  138. package/vue3/lib/{node/index.bb9d2170.js → browser/index.67caa0a0.js} +412 -407
  139. package/vue3/lib/browser/index.cjs +1 -1
  140. package/vue3/lib/browser/index.js +1 -1
  141. package/vue3/lib/{edge/repeated-block.6e7688cb.cjs → browser/repeated-block.3a15e789.cjs} +1 -1
  142. package/vue3/lib/{edge/repeated-block.1735d6ce.js → browser/repeated-block.ab5e93b5.js} +2 -2
  143. package/vue3/lib/browser/style.css +1 -1
  144. package/vue3/lib/browser/types/components.d.ts +0 -1
  145. package/vue3/lib/edge/{block-wrapper.6bb62da5.cjs → block-wrapper.8441fbe1.cjs} +1 -1
  146. package/vue3/lib/{node/block-wrapper.f1e0d99f.js → edge/block-wrapper.e3b7b422.js} +2 -2
  147. package/vue3/lib/{browser/component-ref.90060339.cjs → edge/component-ref.40439a7f.cjs} +1 -1
  148. package/vue3/lib/{node/component-ref.e2ad1f80.js → edge/component-ref.7035b91b.js} +2 -2
  149. package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +0 -1
  150. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  151. package/vue3/lib/edge/functions/fetch-builder-props.d.ts +13 -0
  152. package/vue3/lib/{browser/get-block-actions.9a71b975.cjs → edge/get-block-actions.37ab332e.cjs} +1 -1
  153. package/vue3/lib/{browser/get-block-actions.05d2bf89.js → edge/get-block-actions.7d762289.js} +1 -1
  154. package/vue3/lib/edge/{index.51a4e9bc.js → index.811ded87.js} +553 -548
  155. package/vue3/lib/edge/index.cjs +1 -1
  156. package/vue3/lib/edge/{index.f8106764.cjs → index.db87480a.cjs} +23 -23
  157. package/vue3/lib/edge/index.js +1 -1
  158. package/vue3/lib/{browser/repeated-block.f7f28e2b.cjs → edge/repeated-block.2c467c57.cjs} +1 -1
  159. package/vue3/lib/{node/repeated-block.6860cc5f.js → edge/repeated-block.59223c04.js} +2 -2
  160. package/vue3/lib/edge/style.css +1 -1
  161. package/vue3/lib/edge/types/components.d.ts +0 -1
  162. package/vue3/lib/node/{block-wrapper.ae2637e5.cjs → block-wrapper.1501b793.cjs} +1 -1
  163. package/vue3/lib/{browser/block-wrapper.f1e0d99f.js → node/block-wrapper.d71006fa.js} +2 -2
  164. package/vue3/lib/{browser/component-ref.e2ad1f80.js → node/component-ref.104f0d16.js} +2 -2
  165. package/vue3/lib/node/{component-ref.90060339.cjs → component-ref.4f5f964f.cjs} +1 -1
  166. package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +0 -1
  167. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  168. package/vue3/lib/node/functions/fetch-builder-props.d.ts +13 -0
  169. package/vue3/lib/node/{get-block-actions.05d2bf89.js → get-block-actions.12becb73.js} +1 -1
  170. package/vue3/lib/node/{get-block-actions.9a71b975.cjs → get-block-actions.316f88d7.cjs} +1 -1
  171. package/vue3/lib/node/index.2b9eb004.cjs +69 -0
  172. package/vue3/lib/{browser/index.bb9d2170.js → node/index.67caa0a0.js} +412 -407
  173. package/vue3/lib/node/index.cjs +1 -1
  174. package/vue3/lib/node/index.js +1 -1
  175. package/vue3/lib/node/{repeated-block.f7f28e2b.cjs → repeated-block.3a15e789.cjs} +1 -1
  176. package/vue3/lib/{browser/repeated-block.6860cc5f.js → node/repeated-block.ab5e93b5.js} +2 -2
  177. package/vue3/lib/node/style.css +1 -1
  178. package/vue3/lib/node/types/components.d.ts +0 -1
  179. package/vue2/lib/browser/block-styles-7b6133cb.js +0 -77
  180. package/vue2/lib/browser/block-styles-d210742a.cjs +0 -1
  181. package/vue2/lib/browser/enable-editor-4c0af531.cjs +0 -1
  182. package/vue2/lib/edge/block-styles-68308a10.js +0 -77
  183. package/vue2/lib/edge/block-styles-c081fccd.cjs +0 -1
  184. package/vue2/lib/edge/enable-editor-8c6fd5f2.cjs +0 -1
  185. package/vue2/lib/node/block-styles-7b6133cb.js +0 -77
  186. package/vue2/lib/node/block-styles-d210742a.cjs +0 -1
  187. package/vue2/lib/node/enable-editor-4c0af531.cjs +0 -1
  188. package/vue3/lib/browser/index.eed52cb2.cjs +0 -69
  189. package/vue3/lib/node/index.eed52cb2.cjs +0 -69
@@ -1,31 +1,31 @@
1
- "use strict";const a=require("vue");function lt(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const po=a.defineComponent({name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],data(){return{filterAttrs:lt}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const $=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ho=["href","target"];function fo(e,t,n,r,o,i){return e.link?(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,role:"button",href:e.link,target:e.openLinkInNewTab?"_blank":void 0},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17,ho)):(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,style:e.attributes.style,class:e._classStringToObject(e.attributes.class+" button-21azgz5avex")},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17))}const lr=$(po,[["render",fo],["__scopeId","data-v-becdf225"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]),Xe=e=>JSON.parse(JSON.stringify(e)),cr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},zn=(e,t=cr)=>`@media (max-width: ${t[e].max}px)`,pr=({small:e,medium:t})=>{const n=Xe(cr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},re="vue3",st="[Builder.io]: ",q={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}function mo(){return K()&&window.self!==window.top}function te(){return mo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const go=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},yo=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=yo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||re==="reactNative"}},n=e.match(/Tablet|iPad/i),r=go();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,u)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[u+1]))>>0===+r[u+1]?[]:{},e)[r[r.length-1]]=n,e};var j,vo=function(e){function t(s){return 48>s?s===36:58>s?!0:65>s?!1:91>s?!0:97>s?s===95:123>s?!0:170<=s&&lo.test(String.fromCharCode(s))}function n(s){return 65>s?s===36:91>s?!0:97>s?s===95:123>s?!0:170<=s&&Gn.test(String.fromCharCode(s))}function r(s,l){for(var c=v,h=1,S=0;;){it.lastIndex=S;var U=it.exec(c);if(U&&U.index<s)++h,S=U.index+U[0].length;else break}throw c={line:h,ab:s-S},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=s,l.X=c,l.o=p,l}function o(s){s=s.split(" ");for(var l=Object.create(null),c=0;c<s.length;c++)l[s[c]]=!0;return function(h){return l[h]||!1}}function i(){this.line=ve,this.ab=p-se}function u(s,l){be=p,w.C&&(Bt=new i),B=s,f(),Y=l,Re=s.m}function d(){for(var s=p,l=w.va&&w.C&&new i,c=v.charCodeAt(p+=2);p<Ae&&c!==10&&c!==13&&c!==8232&&c!==8233;)++p,c=v.charCodeAt(p);w.va&&w.va(!1,v.slice(s+2,p),s,p,l,w.C&&new i)}function f(){for(;p<Ae;){var s=v.charCodeAt(p);if(s===32)++p;else if(s===13)++p,s=v.charCodeAt(p),s===10&&++p,w.C&&(++ve,se=p);else if(s===10||s===8232||s===8233)++p,w.C&&(++ve,se=p);else if(8<s&&14>s)++p;else if(s===47)if(s=v.charCodeAt(p+1),s===42){s=void 0;var l=w.va&&w.C&&new i,c=p,h=v.indexOf("*/",p+=2);if(h===-1&&r(p-2,"Unterminated comment"),p=h+2,w.C)for(it.lastIndex=c;(s=it.exec(v))&&s.index<p;)++ve,se=s.index+s[0].length;w.va&&w.va(!0,v.slice(c+2,h),c,p,l,w.C&&new i)}else if(s===47)d();else break;else if(s===160)++p;else if(5760<=s&&ao.test(String.fromCharCode(s)))++p;else break}}function g(s){switch(s){case 46:s=v.charCodeAt(p+1),48<=s&&57>=s?D(!0):(++p,u(_n));return;case 40:return++p,u(ue);case 41:return++p,u(ee);case 59:return++p,u(ae);case 44:return++p,u(me);case 91:return++p,u(Ot);case 93:return++p,u($t);case 123:return++p,u(Ne);case 125:return++p,u(Ee);case 58:return++p,u(Pe);case 63:return++p,u(Un);case 48:if(s=v.charCodeAt(p+1),s===120||s===88){p+=2,s=I(16),s===null&&r(_+2,"Expected hexadecimal number"),n(v.charCodeAt(p))&&r(p,"Identifier directly after number"),u($e,s);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return D(!1);case 34:case 39:p++;for(var l="";;){p>=Ae&&r(_,"Unterminated string constant");var c=v.charCodeAt(p);if(c===s){++p,u(tt,l);break}if(c===92){c=v.charCodeAt(++p);var h=/^[0-7]+/.exec(v.slice(p,p+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++p,h)J&&r(p-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(h,8)),p+=h.length-1;else switch(c){case 110:l+=`
2
- `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(R(2));break;case 117:l+=String.fromCharCode(R(4));break;case 85:l+=String.fromCharCode(R(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:v.charCodeAt(p)===10&&++p;case 10:w.C&&(se=p,++ve);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++p}return;case 47:s=v.charCodeAt(p+1),Re?(++p,T()):s===61?A(Ce,2):A(Mn,1);return;case 37:case 42:v.charCodeAt(p+1)===61?A(Ce,2):A(io,1);return;case 124:case 38:l=v.charCodeAt(p+1),l===s?A(s===124?Wn:Hn,2):l===61?A(Ce,2):A(s===124?Zr:eo,1);return;case 94:v.charCodeAt(p+1)===61?A(Ce,2):A(Qr,1);return;case 43:case 45:l=v.charCodeAt(p+1),l===s?l===45&&v.charCodeAt(p+2)===62&&ot.test(v.slice(fe,p))?(p+=3,d(),f(),y()):A(Yr,2):l===61?A(Ce,2):A(oo,1);return;case 60:case 62:l=v.charCodeAt(p+1),c=1,l===s?(c=s===62&&v.charCodeAt(p+2)===62?3:2,v.charCodeAt(p+c)===61?A(Ce,c+1):A(ro,c)):l===33&&s===60&&v.charCodeAt(p+2)===45&&v.charCodeAt(p+3)===45?(p+=4,d(),f(),y()):(l===61&&(c=v.charCodeAt(p+2)===61?3:2),A(no,c));return;case 61:case 33:v.charCodeAt(p+1)===61?A(to,v.charCodeAt(p+2)===61?3:2):A(s===61?Vn:Ln,1);return;case 126:return A(Ln,1)}return!1}function y(s){if(s?p=_+1:_=p,w.C&&(Et=new i),s)return T();if(p>=Ae)return u(wt);if(s=v.charCodeAt(p),n(s)||s===92)return Z();if(g(s)===!1){if(s=String.fromCharCode(s),s==="\\"||Gn.test(s))return Z();r(p,"Unexpected character '"+s+"'")}}function A(s,l){var c=v.slice(p,p+l);p+=l,u(s,c)}function T(){for(var s,l,c=p;;){p>=Ae&&r(c,"Unterminated regexp");var h=v.charAt(p);if(ot.test(h)&&r(c,"Unterminated regexp"),s)s=!1;else{if(h==="[")l=!0;else if(h==="]"&&l)l=!1;else if(h==="/"&&!l)break;s=h==="\\"}++p}s=v.slice(c,p),++p,(l=V())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var S=new RegExp(s,l)}catch(U){throw U instanceof SyntaxError&&r(c,U.message),U}u(Cn,S)}function I(s,l){for(var c=p,h=0,S=l===void 0?1/0:l,U=0;U<S;++U){var G=v.charCodeAt(p);if(G=97<=G?G-97+10:65<=G?G-65+10:48<=G&&57>=G?G-48:1/0,G>=s)break;++p,h=h*s+G}return p===c||l!==void 0&&p-c!==l?null:h}function D(s){var l=p,c=!1,h=v.charCodeAt(p)===48;s||I(10)!==null||r(l,"Invalid number"),v.charCodeAt(p)===46&&(++p,I(10),c=!0),s=v.charCodeAt(p),(s===69||s===101)&&(s=v.charCodeAt(++p),s!==43&&s!==45||++p,I(10)===null&&r(l,"Invalid number"),c=!0),n(v.charCodeAt(p))&&r(p,"Identifier directly after number"),s=v.slice(l,p);var S;c?S=parseFloat(s):h&&s.length!==1?/[89]/.test(s)||J?r(l,"Invalid number"):S=parseInt(s,8):S=parseInt(s,10),u($e,S)}function R(s){return s=I(16,s),s===null&&r(_,"Bad character escape sequence"),s}function V(){Be=!1;for(var s,l=!0,c=p;;){var h=v.charCodeAt(p);if(t(h))Be&&(s+=v.charAt(p)),++p;else if(h===92){Be||(s=v.slice(c,p)),Be=!0,v.charCodeAt(++p)!==117&&r(p,"Expecting Unicode escape sequence \\uXXXX"),++p,h=R(4);var S=String.fromCharCode(h);S||r(p-1,"Invalid Unicode escape"),(l?n(h):t(h))||r(p-4,"Invalid Unicode escape"),s+=S}else break;l=!1}return Be?s:v.slice(c,p)}function Z(){var s=V(),l=ke;!Be&&uo(s)&&(l=qr[s]),u(l,s)}function E(){St=_,fe=be,Ft=Bt,y()}function ft(s){if(J=s,p=_,w.C)for(;p<se;)se=v.lastIndexOf(`
3
- `,se-2)+1,--ve;f(),y()}function fn(){this.type=null,this.start=_,this.end=null}function mn(){this.start=Et,this.end=null,kt&&(this.source=kt)}function L(){var s=new fn;return w.C&&(s.X=new mn),w.vb&&(s.sourceFile=w.vb),w.Xa&&(s.j=[_,0]),s}function he(s){var l=new fn;return l.start=s.start,w.C&&(l.X=new mn,l.X.start=s.X.start),w.Xa&&(l.j=[s.j[0],0]),l}function F(s,l){return s.type=l,s.end=fe,w.C&&(s.X.end=Ft),w.Xa&&(s.j[1]=fe),s}function mt(s){return s.type==="ExpressionStatement"&&s.la.type==="Literal"&&s.la.value==="use strict"}function O(s){return B===s?(E(),!0):!1}function Ze(){return!w.fc&&(B===wt||B===Ee||ot.test(v.slice(fe,_)))}function ye(){O(ae)||Ze()||oe()}function N(s){B===s?E():oe()}function oe(){r(_,"Unexpected token")}function Qe(s){s.type!=="Identifier"&&s.type!=="MemberExpression"&&r(s.start,"Assigning to rvalue"),J&&s.type==="Identifier"&&rt(s.name)&&r(s.start,"Assigning to "+s.name+" in strict mode")}function Q(){(B===Mn||B===Ce&&Y==="/=")&&y(!0);var s=B,l=L();switch(s){case Dt:case bn:E();var c=s===Dt;O(ae)||Ze()?l.label=null:B!==ke?oe():(l.label=ie(),ye());for(var h=0;h<P.length;++h){var S=P[h];if((l.label===null||S.name===l.label.name)&&(S.kind!==null&&(c||S.kind==="loop")||l.label&&c))break}return h===P.length&&r(l.start,"Unsyntactic "+s.l),F(l,c?"BreakStatement":"ContinueStatement");case kn:return E(),ye(),F(l,"DebuggerStatement");case Bn:return E(),P.push(Nt),l.body=Q(),P.pop(),N(Rt),l.test=Te(),ye(),F(l,"DoWhileStatement");case wn:return E(),P.push(Nt),N(ue),B===ae?gt(l,null):B===jt?(s=L(),E(),yn(s,!0),F(s,"VariableDeclaration"),s.fa.length===1&&O(nt)?gn(l,s):gt(l,s)):(s=H(!1,!0),O(nt)?(Qe(s),gn(l,s)):gt(l,s));case Tt:return E(),At(l,!0);case Dn:return E(),l.test=Te(),l.da=Q(),l.alternate=O(Sn)?Q():null,F(l,"IfStatement");case xn:return Oe||w.Ib||r(_,"'return' outside of function"),E(),O(ae)||Ze()?l.K=null:(l.K=H(),ye()),F(l,"ReturnStatement");case It:for(E(),l.Qb=Te(),l.tb=[],N(Ne),P.push(co);B!==Ee;)B===xt||B===En?(s=B===xt,h&&F(h,"SwitchCase"),l.tb.push(h=L()),h.da=[],E(),s?h.test=H():(c&&r(St,"Multiple default clauses"),c=!0,h.test=null),N(Pe)):(h||oe(),h.da.push(Q()));return h&&F(h,"SwitchCase"),E(),P.pop(),F(l,"SwitchStatement");case Tn:return E(),ot.test(v.slice(fe,_))&&r(fe,"Illegal newline after throw"),l.K=H(),ye(),F(l,"ThrowStatement");case In:return E(),l.block=Ie(),l.Ea=null,B===An&&(s=L(),E(),N(ue),s.Ua=ie(),J&&rt(s.Ua.name)&&r(s.Ua.start,"Binding "+s.Ua.name+" in strict mode"),N(ee),s.body=Ie(),l.Ea=F(s,"CatchClause")),l.fb=O(Fn)?Ie():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),F(l,"TryStatement");case jt:return E(),yn(l),ye(),F(l,"VariableDeclaration");case Rt:return E(),l.test=Te(),P.push(Nt),l.body=Q(),P.pop(),F(l,"WhileStatement");case jn:return J&&r(_,"'with' in strict mode"),E(),l.object=Te(),l.body=Q(),F(l,"WithStatement");case Ne:return Ie();case ae:return E(),F(l,"EmptyStatement");default:if(c=Y,S=H(),s===ke&&S.type==="Identifier"&&O(Pe)){for(h=0;h<P.length;++h)P[h].name===c&&r(S.start,"Label '"+c+"' is already declared");return P.push({name:c,kind:B.W?"loop":B===It?"switch":null}),l.body=Q(),P.pop(),l.label=S,F(l,"LabeledStatement")}return l.la=S,ye(),F(l,"ExpressionStatement")}}function Te(){N(ue);var s=H();return N(ee),s}function Ie(s){var l=L(),c=!0,h=!1;for(l.body=[],N(Ne);!O(Ee);){var S=Q();if(l.body.push(S),c&&s&&mt(S)){var U=h;ft(h=!0)}c=!1}return h&&!U&&ft(!1),F(l,"BlockStatement")}function gt(s,l){return s.ua=l,N(ae),s.test=B===ae?null:H(),N(ae),s.update=B===ee?null:H(),N(ee),s.body=Q(),P.pop(),F(s,"ForStatement")}function gn(s,l){return s.left=l,s.right=H(),N(ee),s.body=Q(),P.pop(),F(s,"ForInStatement")}function yn(s,l){for(s.fa=[],s.kind="var";;){var c=L();if(c.id=ie(),J&&rt(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=O(Vn)?H(!0,l):null,s.fa.push(F(c,"VariableDeclarator")),!O(me))break}}function H(s,l){var c=yt(l);if(!s&&B===me){for(s=he(c),s.xb=[c];O(me);)s.xb.push(yt(l));return F(s,"SequenceExpression")}return c}function yt(s){var l=vt(Ct(),-1,s);if(O(Un)){var c=he(l);c.test=l,c.da=H(!0),N(Pe),c.alternate=H(!0,s),l=F(c,"ConditionalExpression")}return B.Cb?(c=he(l),c.operator=Y,c.left=l,E(),c.right=yt(s),Qe(l),F(c,"AssignmentExpression")):l}function vt(s,l,c){var h=B.L;if(h!==null&&(!c||B!==nt)&&h>l){var S=he(s);return S.left=s,S.operator=Y,s=B,E(),S.right=vt(Ct(),h,c),h=F(S,s===Wn||s===Hn?"LogicalExpression":"BinaryExpression"),vt(h,l,c)}return s}function Ct(){if(B.prefix){var s=L(),l=B.$b;return s.operator=Y,Re=s.prefix=!0,E(),s.K=Ct(),l?Qe(s.K):J&&s.operator==="delete"&&s.K.type==="Identifier"&&r(s.start,"Deleting local variable in strict mode"),F(s,l?"UpdateExpression":"UnaryExpression")}for(l=je(et());B.cc&&!Ze();)s=he(l),s.operator=Y,s.prefix=!1,s.K=l,Qe(l),E(),l=F(s,"UpdateExpression");return l}function je(s,l){if(O(_n)){var c=he(s);return c.object=s,c.Wa=ie(!0),c.bb=!1,je(F(c,"MemberExpression"),l)}return O(Ot)?(c=he(s),c.object=s,c.Wa=H(),c.bb=!0,N($t),je(F(c,"MemberExpression"),l)):!l&&O(ue)?(c=he(s),c.callee=s,c.arguments=bt(ee,!1),je(F(c,"CallExpression"),l)):s}function et(){switch(B){case On:var s=L();return E(),F(s,"ThisExpression");case ke:return ie();case $e:case tt:case Cn:return s=L(),s.value=Y,s.raw=v.slice(_,be),E(),F(s,"Literal");case $n:case Nn:case Pn:return s=L(),s.value=B.$a,s.raw=B.l,E(),F(s,"Literal");case ue:s=Et;var l=_;E();var c=H();return c.start=l,c.end=be,w.C&&(c.X.start=s,c.X.end=Bt),w.Xa&&(c.j=[l,be]),N(ee),c;case Ot:return s=L(),E(),s.elements=bt($t,!0,!0),F(s,"ArrayExpression");case Ne:for(s=L(),l=!0,c=!1,s.h=[],E();!O(Ee);){if(l)l=!1;else if(N(me),w.sb&&O(Ee))break;var h={key:B===$e||B===tt?et():ie(!0)},S=!1;if(O(Pe)){h.value=H(!0);var U=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?oe():(S=c=!0,U=h.kind=h.key.name,h.key=B===$e||B===tt?et():ie(!0),B!==ue&&oe(),h.value=At(L(),!1));if(h.key.type==="Identifier"&&(J||c))for(var G=0;G<s.h.length;++G){var Se=s.h[G];if(Se.key.name===h.key.name){var Pt=U===Se.kind||S&&Se.kind==="init"||U==="init"&&(Se.kind==="get"||Se.kind==="set");Pt&&!J&&U==="init"&&Se.kind==="init"&&(Pt=!1),Pt&&r(h.key.start,"Redefinition of property")}}s.h.push(h)}return F(s,"ObjectExpression");case Tt:return s=L(),E(),At(s,!1);case Rn:return s=L(),E(),s.callee=je(et(),!0),s.arguments=O(ue)?bt(ee,!1):Jr,F(s,"NewExpression")}oe()}function At(s,l){B===ke?s.id=ie():l?oe():s.id=null,s.oa=[];var c=!0;for(N(ue);!O(ee);)c?c=!1:N(me),s.oa.push(ie());c=Oe;var h=P;if(Oe=!0,P=[],s.body=Ie(!0),Oe=c,P=h,J||s.body.body.length&&mt(s.body.body[0])){for(c=s.id?-1:0;c<s.oa.length;++c)if(h=0>c?s.id:s.oa[c],(Kn(h.name)||rt(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=c)for(var S=0;S<c;++S)h.name===s.oa[S].name&&r(h.start,"Argument name clash in strict mode")}return F(s,l?"FunctionDeclaration":"FunctionExpression")}function bt(s,l,c){for(var h=[],S=!0;!O(s);){if(S)S=!1;else if(N(me),l&&w.sb&&O(s))break;h.push(c&&B===me?null:H(!0))}return h}function ie(s){var l=L();return s&&w.yb==="everywhere"&&(s=!1),B===ke?(!s&&(w.yb&&so(Y)||J&&Kn(Y))&&v.slice(_,be).indexOf("\\")===-1&&r(_,"The keyword '"+Y+"' is reserved"),l.name=Y):s&&B.l?l.name=B.l:oe(),Re=!1,E(),F(l,"Identifier")}e.version="0.5.0";var w,v="",Ae,kt;e.parse=function(s,l){v=String(s),Ae=v.length,w=l||{};for(var c in vn)Object.prototype.hasOwnProperty.call(w,c)||(w[c]=vn[c]);for(kt=w.sourceFile,ve=1,p=se=0,Re=!0,f(),c=w.dc,St=fe=p,w.C&&(Ft=new i),Oe=J=!1,P=[],y(),s=c||L(),l=!0,c||(s.body=[]);B!==wt;)c=Q(),s.body.push(c),l&&mt(c)&&ft(!0),l=!1;return F(s,"Program")};var vn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},p=0,_=0,be=0,Et,Bt,B,Y,Re,ve,se,St=0,fe=0,Ft,Oe,P,J,Jr=[],$e={type:"num"},Cn={type:"regexp"},tt={type:"string"},ke={type:"name"},wt={type:"eof"},Dt={l:"break"},xt={l:"case",m:!0},An={l:"catch"},bn={l:"continue"},kn={l:"debugger"},En={l:"default"},Bn={l:"do",W:!0},Sn={l:"else",m:!0},Fn={l:"finally"},wn={l:"for",W:!0},Tt={l:"function"},Dn={l:"if"},xn={l:"return",m:!0},It={l:"switch"},Tn={l:"throw",m:!0},In={l:"try"},jt={l:"var"},Rt={l:"while",W:!0},jn={l:"with"},Rn={l:"new",m:!0},On={l:"this"},$n={l:"null",$a:null},Nn={l:"true",$a:!0},Pn={l:"false",$a:!1},nt={l:"in",L:7,m:!0},qr={break:Dt,case:xt,catch:An,continue:bn,debugger:kn,default:En,do:Bn,else:Sn,finally:Fn,for:wn,function:Tt,if:Dn,return:xn,switch:It,throw:Tn,try:In,var:jt,while:Rt,with:jn,null:$n,true:Nn,false:Pn,new:Rn,in:nt,instanceof:{l:"instanceof",L:7,m:!0},this:On,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ot={type:"[",m:!0},$t={type:"]"},Ne={type:"{",m:!0},Ee={type:"}"},ue={type:"(",m:!0},ee={type:")"},me={type:",",m:!0},ae={type:";",m:!0},Pe={type:":",m:!0},_n={type:"."},Un={type:"?",m:!0},Mn={L:10,m:!0},Vn={Cb:!0,m:!0},Ce={Cb:!0,m:!0},Yr={cc:!0,prefix:!0,$b:!0},Ln={prefix:!0,m:!0},Wn={L:1,m:!0},Hn={L:2,m:!0},Zr={L:3,m:!0},Qr={L:4,m:!0},eo={L:5,m:!0},to={L:6,m:!0},no={L:7,m:!0},ro={L:8,m:!0},oo={L:9,prefix:!0,m:!0},io={L:10,m:!0},so=o("class enum extends super const export import"),Kn=o("implements interface let package private protected public static yield"),rt=o("eval arguments"),uo=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"),ao=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Gn=RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),lo=RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"),ot=/[\n\r\u2028\u2029]/,it=/\r\n|[\n\r\u2028\u2029]/g,Be,Nt={kind:"loop"},co={kind:"switch"}},Vt=Vt=typeof globalThis>"u"?void 0:globalThis;vo(Vt.j||(Vt.j={}));function m(e,t){typeof e=="string"&&(e=we(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,u;for(u in this)typeof this[u]=="function"&&(i=u.match(e))&&(this.rb[i[1]]=this[u].bind(this));this.N=Wt(this,this.ra,null),this.Na=this.N.object,this.ra=we(this.ba.join(`
4
- `),"polyfills"),this.ba=void 0,ct(this.ra),i=new b(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new b(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Xn={C:!0,kc:5},Xt={configurable:!0,enumerable:!0,writable:!1},C={configurable:!0,enumerable:!1,writable:!0},X={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Jn={configurable:!1,enumerable:!0,writable:!0},fr={STEP_ERROR:!0},xe={SCOPE_REFERENCE:!0},Ke={VALUE_IN_DESCRIPTOR:!0},Fe={REGEXP_TIMEOUT:!0},qn=[],ce=null,We=null,ge=typeof globalThis>"u"?void 0:globalThis,Co=["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();","};"];function Jt(e){var t=e>>>0;return t===Number(e)?t:NaN}function He(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function ct(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&ct(o,t,n)}}m.prototype.REGEXP_MODE=2;m.prototype.REGEXP_THREAD_TIMEOUT=1e3;m.prototype.POLYFILL_TIMEOUT=1e3;j=m.prototype;j.P=!1;j.Ka=!1;j.Kb=0;j.ic=0;function we(e,t){var n={},r;for(r in Xn)n[r]=Xn[r];return n.sourceFile=t,ge.j.parse(e,n)}j.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=we(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ge(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};j.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&yr(this,n,n.interval);var r=new b(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=We;We=this;try{var i=this.rb[r.type](e,n,r)}catch(u){if(u!==fr)throw this.value!==u&&(this.value=void 0),u}finally{We=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};j.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Ao(e,t){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,Xt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new x(null),e.Z=new x(e.M),bo(e,t),ko(e,t),t.xa=e.M,e.g(t,"constructor",e.v,C),Eo(e,t),Bo(e,t),So(e,t),Fo(e,t),wo(e,t),Do(e,t),xo(e,t),To(e,t),Io(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,C),e.g(t,"parseInt",e.i(parseInt,!1),C),e.g(t,"parseFloat",e.i(parseFloat,!1),C),e.g(t,"isNaN",e.i(isNaN,!1),C),e.g(t,"isFinite",e.i(isFinite,!1),C);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(u){try{return i(u)}catch(d){k(e,e.Gb,d.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),C);n=function(i){return Yn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),C),n=function(i){return Yn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),C),n=function(i){Zn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),C),n=function(i){Zn(e,i)},e.g(t,"clearInterval",e.i(n,!1),C),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)}j.Wb=0;function bo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",u=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(u){u=u.split(/\s*,\s*/);for(var d=0;d<u.length;d++){var f=u[d];n.test(f)||k(e,e.T,"Invalid function argument: "+f)}u=u.join(", ")}try{var g=we("(function("+u+") {"+i+"})","function"+e.Wb++)}catch(y){k(e,e.T,"Invalid code: "+y.message)}return g.body.length!==1&&k(e,e.T,"Invalid code in function body"),Zt(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,C),e.g(e.O,"prototype",e.Z,C),e.g(e.Z,"constructor",e.O,C),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,X),e.Z.H="Function",r=function(o,i){var u=e.o[e.o.length-1];u.U=this,u.B=o,u.F=[],i!=null&&(i instanceof x?u.F=mr(e,i):k(e,e.j,"CreateListFromArrayLike called on non-object")),u.eb=!1},M(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var u=1;u<arguments.length;u++)i.F.push(arguments[u]);i.eb=!1},M(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(){return String(this)},M(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),C),r=function(){return this.valueOf()},M(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),C)}function ko(e,t){function n(o){o!=null||k(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return de(e)?this:e.s(e.M);if(!(o instanceof x)){var i=e.s(pe(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,C),e.g(e.M,"constructor",e.v,C),e.g(t,"Object",e.v,C),r=function(o){return n(o),le(e,Object.getOwnPropertyNames(o instanceof x?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),C),r=function(o){return n(o),o instanceof x&&(o=o.h),le(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),C),r=function(o){return o===null?e.s(null):(o instanceof x||k(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),C),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,u){return i=String(i),o instanceof x||k(e,e.j,"Object.defineProperty called on non-object: "+o),u instanceof x||k(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||k(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Ke,u.h),o},e.g(e.v,"defineProperty",e.i(r,!1),C),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){if(o instanceof x||k(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var u=Object.getOwnPropertyDescriptor(o.h,i),d=o.V[i];return o=o.Y[i],i=e.s(e.M),d||o?(e.g(i,"get",d),e.g(i,"set",o)):(e.g(i,"value",u.value),e.g(i,"writable",u.writable)),e.g(i,"configurable",u.configurable),e.g(i,"enumerable",u.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),C),r=function(o){return n(o),pe(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),C),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),C),r=function(o){return o instanceof x&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),C),M(e,e.v,"toString",x.prototype.toString),M(e,e.v,"toLocaleString",x.prototype.toString),M(e,e.v,"valueOf",x.prototype.valueOf),r=function(o){return n(this),this instanceof x?String(o)in this.h:this.hasOwnProperty(o)},M(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof x?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},M(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=pe(e,o),!o)return!1;if(o===this)return!0}},M(e,e.v,"isPrototypeOf",r)}function Eo(e,t){var n=function(r){var o=de(e)?this:De(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Jt(i))&&k(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,C),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),C),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),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(',');","}",");","})();","")}function Bo(e,t){var n=function(r){return r=arguments.length?ge.String(r):"",de(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,C),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),C),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)M(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(u){k(e,e.D,"localeCompare: "+u.message)}},M(e,e.J,"localeCompare",n),n=function(r,o,i){var u=String(this);if(o=o?Number(o):void 0,W(e,r,e.I)&&(r=r.data,Me(e,r,i),e.REGEXP_MODE===2)){if(ce)r=Ue(e,"string.split(separator, limit)",{string:u,separator:r,limit:o},r,i),r!==Fe&&i(le(e,r));else{var d=e.ha(),f=Ve(e,r,d,i);d.onmessage=function(g){clearTimeout(f),i(le(e,g.data))},d.postMessage(["split",u,r,o])}return}r=u.split(r,o),i(le(e,r))},Le(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=W(e,r,e.I)?r.data:new RegExp(r),Me(e,r,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Fe&&o(r&&le(e,r));else{var u=e.ha(),d=Ve(e,r,u,o);u.onmessage=function(f){clearTimeout(d),o(f.data&&le(e,f.data))},u.postMessage(["match",i,r])}else r=i.match(r),o(r&&le(e,r))},Le(e,e.J,"match",n),n=function(r,o){var i=String(this);if(W(e,r,e.I)?r=r.data:r=new RegExp(r),Me(e,r,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Fe&&o(r);else{var u=e.ha(),d=Ve(e,r,u,o);u.onmessage=function(f){clearTimeout(d),o(f.data)},u.postMessage(["search",i,r])}else o(i.search(r))},Le(e,e.J,"search",n),n=function(r,o,i){var u=String(this);if(o=String(o),W(e,r,e.I)&&(r=r.data,Me(e,r,i),e.REGEXP_MODE===2)){if(ce)r=Ue(e,"string.replace(substr, newSubstr)",{string:u,substr:r,newSubstr:o},r,i),r!==Fe&&i(r);else{var d=e.ha(),f=Ve(e,r,d,i);d.onmessage=function(g){clearTimeout(f),i(g.data)},d.postMessage(["replace",u,r,o])}return}i(u.replace(r,o))},Le(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;","};","})();","")}function So(e,t){e.mb=e.i(function(n){return n=ge.Boolean(n),de(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,C)}function Fo(e,t){var n=function(r){return r=arguments.length?ge.Number(r):0,de(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,C),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){k(e,e.D,"toLocaleString: "+i.message)}},M(e,e.aa,"toLocaleString",n)}function wo(e,t){var n=function(o,i){if(!de(e))return ge.Date();var u=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ge.Date,u)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,C),e.g(e.$,"now",e.i(Date.now,!1),C),e.g(e.$,"parse",e.i(Date.parse,!1),C),e.g(e.$,"UTC",e.i(Date.UTC,!1),C),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(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var u=this.data;u instanceof Date||k(e,e.j,o+" not called on a Date");for(var d=[],f=0;f<arguments.length;f++)d[f]=e.R(arguments[f]);return u[o].apply(u,d)}}(t[r]),M(e,e.$,t[r],n)}function Do(e,t){var n=function(r,o){if(de(e))var i=this;else{if(o===void 0&&W(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||k(e,e.T,"Invalid regexp flag: "+o);try{var u=new ge.RegExp(r,o)}catch(d){k(e,e.T,d.message)}return qt(e,i,u),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,C),e.g(e.I.h.prototype,"global",void 0,X),e.g(e.I.h.prototype,"ignoreCase",void 0,X),e.g(e.I.h.prototype,"multiline",void 0,X),e.g(e.I.h.prototype,"source","(?:)",X),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(y){if(y){var A=le(e,y);return e.g(A,"index",y.index),e.g(A,"input",y.input),A}return null}var u=this.data;if(r=String(r),u.lastIndex=Number(e.G(this,"lastIndex")),Me(e,u,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"regexp.exec(string)",{string:r,regexp:u},u,o),r!==Fe&&(e.g(this,"lastIndex",u.lastIndex),o(i(r)));else{var d=e.ha(),f=Ve(e,u,d,o),g=this;d.onmessage=function(y){clearTimeout(f),e.g(g,"lastIndex",y.data[1]),o(i(y.data[0]))},d.postMessage(["exec",u,u.lastIndex,r])}else r=u.exec(r),e.g(this,"lastIndex",u.lastIndex),o(i(r))},Le(e,e.I,"exec",n)}function xo(e,t){function n(r){var o=e.i(function(i){var u=de(e)?this:e.Aa(o);return Lt(e,u,i),u},!0);return e.g(o,"prototype",e.Aa(e.D),C),e.g(o.h.prototype,"name",r,C),e.g(t,r,o,C),o}e.D=e.i(function(r){var o=de(e)?this:e.Aa(e.D);return Lt(e,o,r),o},!0),e.g(t,"Error",e.D,C),e.g(e.D.h.prototype,"message","",C),e.g(e.D.h.prototype,"name","Error",C),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function To(e,t){var n=e.s(e.M);e.g(t,"Math",n,C);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],X);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++)e.g(n,r[t],e.i(Math[r[t]],!1),C)}function Io(e,t){var n=e.s(e.M);e.g(t,"JSON",n,C),t=function(r){try{var o=JSON.parse(String(r))}catch(i){k(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?k(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=mr(e,o),o=o.filter(function(d){return typeof d=="string"||typeof d=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var u=JSON.stringify(r,o,i)}catch(d){k(e,e.j,d.message)}return u},e.g(n,"stringify",e.i(t,!1))}function W(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=pe(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,C),e.g(t,"source",n.source,X),e.g(t,"global",n.global,X),e.g(t,"ignoreCase",n.ignoreCase,X),e.g(t,"multiline",n.multiline,X)}function Lt(e,t,n){n&&e.g(t,"message",String(n),C),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;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({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
1
+ "use strict";const a=require("vue");function ct(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const po=a.defineComponent({name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],data(){return{filterAttrs:ct}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const $=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ho=["href","target"];function fo(e,t,n,r,o,i){return e.link?(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,role:"button",href:e.link,target:e.openLinkInNewTab?"_blank":void 0},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17,ho)):(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,style:e.attributes.style,class:e._classStringToObject(e.attributes.class+" button-21azgz5avex")},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17))}const lr=$(po,[["render",fo],["__scopeId","data-v-becdf225"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]),Xe=e=>JSON.parse(JSON.stringify(e)),cr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},zn=(e,t=cr)=>`@media (max-width: ${t[e].max}px)`,pr=({small:e,medium:t})=>{const n=Xe(cr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},re="vue3",st="[Builder.io]: ",q={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}function mo(){return K()&&window.self!==window.top}function te(){return mo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const go=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},yo=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=yo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||re==="reactNative"}},n=e.match(/Tablet|iPad/i),r=go();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,u)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[u+1]))>>0===+r[u+1]?[]:{},e)[r[r.length-1]]=n,e};var j,vo=function(e){function t(s){return 48>s?s===36:58>s?!0:65>s?!1:91>s?!0:97>s?s===95:123>s?!0:170<=s&&lo.test(String.fromCharCode(s))}function n(s){return 65>s?s===36:91>s?!0:97>s?s===95:123>s?!0:170<=s&&Gn.test(String.fromCharCode(s))}function r(s,l){for(var c=C,h=1,B=0;;){it.lastIndex=B;var U=it.exec(c);if(U&&U.index<s)++h,B=U.index+U[0].length;else break}throw c={line:h,ab:s-B},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=s,l.X=c,l.o=d,l}function o(s){s=s.split(" ");for(var l=Object.create(null),c=0;c<s.length;c++)l[s[c]]=!0;return function(h){return l[h]||!1}}function i(){this.line=ve,this.ab=d-se}function u(s,l){be=d,w.C&&(Bt=new i),S=s,f(),Y=l,Re=s.m}function p(){for(var s=d,l=w.va&&w.C&&new i,c=C.charCodeAt(d+=2);d<Ae&&c!==10&&c!==13&&c!==8232&&c!==8233;)++d,c=C.charCodeAt(d);w.va&&w.va(!1,C.slice(s+2,d),s,d,l,w.C&&new i)}function f(){for(;d<Ae;){var s=C.charCodeAt(d);if(s===32)++d;else if(s===13)++d,s=C.charCodeAt(d),s===10&&++d,w.C&&(++ve,se=d);else if(s===10||s===8232||s===8233)++d,w.C&&(++ve,se=d);else if(8<s&&14>s)++d;else if(s===47)if(s=C.charCodeAt(d+1),s===42){s=void 0;var l=w.va&&w.C&&new i,c=d,h=C.indexOf("*/",d+=2);if(h===-1&&r(d-2,"Unterminated comment"),d=h+2,w.C)for(it.lastIndex=c;(s=it.exec(C))&&s.index<d;)++ve,se=s.index+s[0].length;w.va&&w.va(!0,C.slice(c+2,h),c,d,l,w.C&&new i)}else if(s===47)p();else break;else if(s===160)++d;else if(5760<=s&&ao.test(String.fromCharCode(s)))++d;else break}}function g(s){switch(s){case 46:s=C.charCodeAt(d+1),48<=s&&57>=s?D(!0):(++d,u(_n));return;case 40:return++d,u(ue);case 41:return++d,u(ee);case 59:return++d,u(ae);case 44:return++d,u(me);case 91:return++d,u($t);case 93:return++d,u(Nt);case 123:return++d,u(Ne);case 125:return++d,u(Ee);case 58:return++d,u(Pe);case 63:return++d,u(Un);case 48:if(s=C.charCodeAt(d+1),s===120||s===88){d+=2,s=I(16),s===null&&r(_+2,"Expected hexadecimal number"),n(C.charCodeAt(d))&&r(d,"Identifier directly after number"),u($e,s);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return D(!1);case 34:case 39:d++;for(var l="";;){d>=Ae&&r(_,"Unterminated string constant");var c=C.charCodeAt(d);if(c===s){++d,u(tt,l);break}if(c===92){c=C.charCodeAt(++d);var h=/^[0-7]+/.exec(C.slice(d,d+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++d,h)J&&r(d-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(h,8)),d+=h.length-1;else switch(c){case 110:l+=`
2
+ `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(R(2));break;case 117:l+=String.fromCharCode(R(4));break;case 85:l+=String.fromCharCode(R(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:C.charCodeAt(d)===10&&++d;case 10:w.C&&(se=d,++ve);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++d}return;case 47:s=C.charCodeAt(d+1),Re?(++d,T()):s===61?v(Ce,2):v(Mn,1);return;case 37:case 42:C.charCodeAt(d+1)===61?v(Ce,2):v(io,1);return;case 124:case 38:l=C.charCodeAt(d+1),l===s?v(s===124?Wn:Hn,2):l===61?v(Ce,2):v(s===124?Zr:eo,1);return;case 94:C.charCodeAt(d+1)===61?v(Ce,2):v(Qr,1);return;case 43:case 45:l=C.charCodeAt(d+1),l===s?l===45&&C.charCodeAt(d+2)===62&&ot.test(C.slice(fe,d))?(d+=3,p(),f(),y()):v(Yr,2):l===61?v(Ce,2):v(oo,1);return;case 60:case 62:l=C.charCodeAt(d+1),c=1,l===s?(c=s===62&&C.charCodeAt(d+2)===62?3:2,C.charCodeAt(d+c)===61?v(Ce,c+1):v(ro,c)):l===33&&s===60&&C.charCodeAt(d+2)===45&&C.charCodeAt(d+3)===45?(d+=4,p(),f(),y()):(l===61&&(c=C.charCodeAt(d+2)===61?3:2),v(no,c));return;case 61:case 33:C.charCodeAt(d+1)===61?v(to,C.charCodeAt(d+2)===61?3:2):v(s===61?Vn:Ln,1);return;case 126:return v(Ln,1)}return!1}function y(s){if(s?d=_+1:_=d,w.C&&(St=new i),s)return T();if(d>=Ae)return u(Dt);if(s=C.charCodeAt(d),n(s)||s===92)return Z();if(g(s)===!1){if(s=String.fromCharCode(s),s==="\\"||Gn.test(s))return Z();r(d,"Unexpected character '"+s+"'")}}function v(s,l){var c=C.slice(d,d+l);d+=l,u(s,c)}function T(){for(var s,l,c=d;;){d>=Ae&&r(c,"Unterminated regexp");var h=C.charAt(d);if(ot.test(h)&&r(c,"Unterminated regexp"),s)s=!1;else{if(h==="[")l=!0;else if(h==="]"&&l)l=!1;else if(h==="/"&&!l)break;s=h==="\\"}++d}s=C.slice(c,d),++d,(l=V())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var B=new RegExp(s,l)}catch(U){throw U instanceof SyntaxError&&r(c,U.message),U}u(Cn,B)}function I(s,l){for(var c=d,h=0,B=l===void 0?1/0:l,U=0;U<B;++U){var G=C.charCodeAt(d);if(G=97<=G?G-97+10:65<=G?G-65+10:48<=G&&57>=G?G-48:1/0,G>=s)break;++d,h=h*s+G}return d===c||l!==void 0&&d-c!==l?null:h}function D(s){var l=d,c=!1,h=C.charCodeAt(d)===48;s||I(10)!==null||r(l,"Invalid number"),C.charCodeAt(d)===46&&(++d,I(10),c=!0),s=C.charCodeAt(d),(s===69||s===101)&&(s=C.charCodeAt(++d),s!==43&&s!==45||++d,I(10)===null&&r(l,"Invalid number"),c=!0),n(C.charCodeAt(d))&&r(d,"Identifier directly after number"),s=C.slice(l,d);var B;c?B=parseFloat(s):h&&s.length!==1?/[89]/.test(s)||J?r(l,"Invalid number"):B=parseInt(s,8):B=parseInt(s,10),u($e,B)}function R(s){return s=I(16,s),s===null&&r(_,"Bad character escape sequence"),s}function V(){Se=!1;for(var s,l=!0,c=d;;){var h=C.charCodeAt(d);if(t(h))Se&&(s+=C.charAt(d)),++d;else if(h===92){Se||(s=C.slice(c,d)),Se=!0,C.charCodeAt(++d)!==117&&r(d,"Expecting Unicode escape sequence \\uXXXX"),++d,h=R(4);var B=String.fromCharCode(h);B||r(d-1,"Invalid Unicode escape"),(l?n(h):t(h))||r(d-4,"Invalid Unicode escape"),s+=B}else break;l=!1}return Se?s:C.slice(c,d)}function Z(){var s=V(),l=ke;!Se&&uo(s)&&(l=qr[s]),u(l,s)}function E(){Ft=_,fe=be,wt=Bt,y()}function mt(s){if(J=s,d=_,w.C)for(;d<se;)se=C.lastIndexOf(`
3
+ `,se-2)+1,--ve;f(),y()}function fn(){this.type=null,this.start=_,this.end=null}function mn(){this.start=St,this.end=null,Et&&(this.source=Et)}function L(){var s=new fn;return w.C&&(s.X=new mn),w.vb&&(s.sourceFile=w.vb),w.Xa&&(s.j=[_,0]),s}function he(s){var l=new fn;return l.start=s.start,w.C&&(l.X=new mn,l.X.start=s.X.start),w.Xa&&(l.j=[s.j[0],0]),l}function F(s,l){return s.type=l,s.end=fe,w.C&&(s.X.end=wt),w.Xa&&(s.j[1]=fe),s}function gt(s){return s.type==="ExpressionStatement"&&s.la.type==="Literal"&&s.la.value==="use strict"}function O(s){return S===s?(E(),!0):!1}function Ze(){return!w.fc&&(S===Dt||S===Ee||ot.test(C.slice(fe,_)))}function ye(){O(ae)||Ze()||oe()}function N(s){S===s?E():oe()}function oe(){r(_,"Unexpected token")}function Qe(s){s.type!=="Identifier"&&s.type!=="MemberExpression"&&r(s.start,"Assigning to rvalue"),J&&s.type==="Identifier"&&rt(s.name)&&r(s.start,"Assigning to "+s.name+" in strict mode")}function Q(){(S===Mn||S===Ce&&Y==="/=")&&y(!0);var s=S,l=L();switch(s){case xt:case bn:E();var c=s===xt;O(ae)||Ze()?l.label=null:S!==ke?oe():(l.label=ie(),ye());for(var h=0;h<P.length;++h){var B=P[h];if((l.label===null||B.name===l.label.name)&&(B.kind!==null&&(c||B.kind==="loop")||l.label&&c))break}return h===P.length&&r(l.start,"Unsyntactic "+s.l),F(l,c?"BreakStatement":"ContinueStatement");case kn:return E(),ye(),F(l,"DebuggerStatement");case Sn:return E(),P.push(Pt),l.body=Q(),P.pop(),N(Ot),l.test=Te(),ye(),F(l,"DoWhileStatement");case wn:return E(),P.push(Pt),N(ue),S===ae?yt(l,null):S===Rt?(s=L(),E(),yn(s,!0),F(s,"VariableDeclaration"),s.fa.length===1&&O(nt)?gn(l,s):yt(l,s)):(s=H(!1,!0),O(nt)?(Qe(s),gn(l,s)):yt(l,s));case It:return E(),bt(l,!0);case Dn:return E(),l.test=Te(),l.da=Q(),l.alternate=O(Bn)?Q():null,F(l,"IfStatement");case xn:return Oe||w.Ib||r(_,"'return' outside of function"),E(),O(ae)||Ze()?l.K=null:(l.K=H(),ye()),F(l,"ReturnStatement");case jt:for(E(),l.Qb=Te(),l.tb=[],N(Ne),P.push(co);S!==Ee;)S===Tt||S===En?(s=S===Tt,h&&F(h,"SwitchCase"),l.tb.push(h=L()),h.da=[],E(),s?h.test=H():(c&&r(Ft,"Multiple default clauses"),c=!0,h.test=null),N(Pe)):(h||oe(),h.da.push(Q()));return h&&F(h,"SwitchCase"),E(),P.pop(),F(l,"SwitchStatement");case Tn:return E(),ot.test(C.slice(fe,_))&&r(fe,"Illegal newline after throw"),l.K=H(),ye(),F(l,"ThrowStatement");case In:return E(),l.block=Ie(),l.Ea=null,S===An&&(s=L(),E(),N(ue),s.Ua=ie(),J&&rt(s.Ua.name)&&r(s.Ua.start,"Binding "+s.Ua.name+" in strict mode"),N(ee),s.body=Ie(),l.Ea=F(s,"CatchClause")),l.fb=O(Fn)?Ie():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),F(l,"TryStatement");case Rt:return E(),yn(l),ye(),F(l,"VariableDeclaration");case Ot:return E(),l.test=Te(),P.push(Pt),l.body=Q(),P.pop(),F(l,"WhileStatement");case jn:return J&&r(_,"'with' in strict mode"),E(),l.object=Te(),l.body=Q(),F(l,"WithStatement");case Ne:return Ie();case ae:return E(),F(l,"EmptyStatement");default:if(c=Y,B=H(),s===ke&&B.type==="Identifier"&&O(Pe)){for(h=0;h<P.length;++h)P[h].name===c&&r(B.start,"Label '"+c+"' is already declared");return P.push({name:c,kind:S.W?"loop":S===jt?"switch":null}),l.body=Q(),P.pop(),l.label=B,F(l,"LabeledStatement")}return l.la=B,ye(),F(l,"ExpressionStatement")}}function Te(){N(ue);var s=H();return N(ee),s}function Ie(s){var l=L(),c=!0,h=!1;for(l.body=[],N(Ne);!O(Ee);){var B=Q();if(l.body.push(B),c&&s&&gt(B)){var U=h;mt(h=!0)}c=!1}return h&&!U&&mt(!1),F(l,"BlockStatement")}function yt(s,l){return s.ua=l,N(ae),s.test=S===ae?null:H(),N(ae),s.update=S===ee?null:H(),N(ee),s.body=Q(),P.pop(),F(s,"ForStatement")}function gn(s,l){return s.left=l,s.right=H(),N(ee),s.body=Q(),P.pop(),F(s,"ForInStatement")}function yn(s,l){for(s.fa=[],s.kind="var";;){var c=L();if(c.id=ie(),J&&rt(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=O(Vn)?H(!0,l):null,s.fa.push(F(c,"VariableDeclarator")),!O(me))break}}function H(s,l){var c=vt(l);if(!s&&S===me){for(s=he(c),s.xb=[c];O(me);)s.xb.push(vt(l));return F(s,"SequenceExpression")}return c}function vt(s){var l=Ct(At(),-1,s);if(O(Un)){var c=he(l);c.test=l,c.da=H(!0),N(Pe),c.alternate=H(!0,s),l=F(c,"ConditionalExpression")}return S.Cb?(c=he(l),c.operator=Y,c.left=l,E(),c.right=vt(s),Qe(l),F(c,"AssignmentExpression")):l}function Ct(s,l,c){var h=S.L;if(h!==null&&(!c||S!==nt)&&h>l){var B=he(s);return B.left=s,B.operator=Y,s=S,E(),B.right=Ct(At(),h,c),h=F(B,s===Wn||s===Hn?"LogicalExpression":"BinaryExpression"),Ct(h,l,c)}return s}function At(){if(S.prefix){var s=L(),l=S.$b;return s.operator=Y,Re=s.prefix=!0,E(),s.K=At(),l?Qe(s.K):J&&s.operator==="delete"&&s.K.type==="Identifier"&&r(s.start,"Deleting local variable in strict mode"),F(s,l?"UpdateExpression":"UnaryExpression")}for(l=je(et());S.cc&&!Ze();)s=he(l),s.operator=Y,s.prefix=!1,s.K=l,Qe(l),E(),l=F(s,"UpdateExpression");return l}function je(s,l){if(O(_n)){var c=he(s);return c.object=s,c.Wa=ie(!0),c.bb=!1,je(F(c,"MemberExpression"),l)}return O($t)?(c=he(s),c.object=s,c.Wa=H(),c.bb=!0,N(Nt),je(F(c,"MemberExpression"),l)):!l&&O(ue)?(c=he(s),c.callee=s,c.arguments=kt(ee,!1),je(F(c,"CallExpression"),l)):s}function et(){switch(S){case On:var s=L();return E(),F(s,"ThisExpression");case ke:return ie();case $e:case tt:case Cn:return s=L(),s.value=Y,s.raw=C.slice(_,be),E(),F(s,"Literal");case $n:case Nn:case Pn:return s=L(),s.value=S.$a,s.raw=S.l,E(),F(s,"Literal");case ue:s=St;var l=_;E();var c=H();return c.start=l,c.end=be,w.C&&(c.X.start=s,c.X.end=Bt),w.Xa&&(c.j=[l,be]),N(ee),c;case $t:return s=L(),E(),s.elements=kt(Nt,!0,!0),F(s,"ArrayExpression");case Ne:for(s=L(),l=!0,c=!1,s.h=[],E();!O(Ee);){if(l)l=!1;else if(N(me),w.sb&&O(Ee))break;var h={key:S===$e||S===tt?et():ie(!0)},B=!1;if(O(Pe)){h.value=H(!0);var U=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?oe():(B=c=!0,U=h.kind=h.key.name,h.key=S===$e||S===tt?et():ie(!0),S!==ue&&oe(),h.value=bt(L(),!1));if(h.key.type==="Identifier"&&(J||c))for(var G=0;G<s.h.length;++G){var Be=s.h[G];if(Be.key.name===h.key.name){var _t=U===Be.kind||B&&Be.kind==="init"||U==="init"&&(Be.kind==="get"||Be.kind==="set");_t&&!J&&U==="init"&&Be.kind==="init"&&(_t=!1),_t&&r(h.key.start,"Redefinition of property")}}s.h.push(h)}return F(s,"ObjectExpression");case It:return s=L(),E(),bt(s,!1);case Rn:return s=L(),E(),s.callee=je(et(),!0),s.arguments=O(ue)?kt(ee,!1):Jr,F(s,"NewExpression")}oe()}function bt(s,l){S===ke?s.id=ie():l?oe():s.id=null,s.oa=[];var c=!0;for(N(ue);!O(ee);)c?c=!1:N(me),s.oa.push(ie());c=Oe;var h=P;if(Oe=!0,P=[],s.body=Ie(!0),Oe=c,P=h,J||s.body.body.length&&gt(s.body.body[0])){for(c=s.id?-1:0;c<s.oa.length;++c)if(h=0>c?s.id:s.oa[c],(Kn(h.name)||rt(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=c)for(var B=0;B<c;++B)h.name===s.oa[B].name&&r(h.start,"Argument name clash in strict mode")}return F(s,l?"FunctionDeclaration":"FunctionExpression")}function kt(s,l,c){for(var h=[],B=!0;!O(s);){if(B)B=!1;else if(N(me),l&&w.sb&&O(s))break;h.push(c&&S===me?null:H(!0))}return h}function ie(s){var l=L();return s&&w.yb==="everywhere"&&(s=!1),S===ke?(!s&&(w.yb&&so(Y)||J&&Kn(Y))&&C.slice(_,be).indexOf("\\")===-1&&r(_,"The keyword '"+Y+"' is reserved"),l.name=Y):s&&S.l?l.name=S.l:oe(),Re=!1,E(),F(l,"Identifier")}e.version="0.5.0";var w,C="",Ae,Et;e.parse=function(s,l){C=String(s),Ae=C.length,w=l||{};for(var c in vn)Object.prototype.hasOwnProperty.call(w,c)||(w[c]=vn[c]);for(Et=w.sourceFile,ve=1,d=se=0,Re=!0,f(),c=w.dc,Ft=fe=d,w.C&&(wt=new i),Oe=J=!1,P=[],y(),s=c||L(),l=!0,c||(s.body=[]);S!==Dt;)c=Q(),s.body.push(c),l&&gt(c)&&mt(!0),l=!1;return F(s,"Program")};var vn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,_=0,be=0,St,Bt,S,Y,Re,ve,se,Ft=0,fe=0,wt,Oe,P,J,Jr=[],$e={type:"num"},Cn={type:"regexp"},tt={type:"string"},ke={type:"name"},Dt={type:"eof"},xt={l:"break"},Tt={l:"case",m:!0},An={l:"catch"},bn={l:"continue"},kn={l:"debugger"},En={l:"default"},Sn={l:"do",W:!0},Bn={l:"else",m:!0},Fn={l:"finally"},wn={l:"for",W:!0},It={l:"function"},Dn={l:"if"},xn={l:"return",m:!0},jt={l:"switch"},Tn={l:"throw",m:!0},In={l:"try"},Rt={l:"var"},Ot={l:"while",W:!0},jn={l:"with"},Rn={l:"new",m:!0},On={l:"this"},$n={l:"null",$a:null},Nn={l:"true",$a:!0},Pn={l:"false",$a:!1},nt={l:"in",L:7,m:!0},qr={break:xt,case:Tt,catch:An,continue:bn,debugger:kn,default:En,do:Sn,else:Bn,finally:Fn,for:wn,function:It,if:Dn,return:xn,switch:jt,throw:Tn,try:In,var:Rt,while:Ot,with:jn,null:$n,true:Nn,false:Pn,new:Rn,in:nt,instanceof:{l:"instanceof",L:7,m:!0},this:On,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},$t={type:"[",m:!0},Nt={type:"]"},Ne={type:"{",m:!0},Ee={type:"}"},ue={type:"(",m:!0},ee={type:")"},me={type:",",m:!0},ae={type:";",m:!0},Pe={type:":",m:!0},_n={type:"."},Un={type:"?",m:!0},Mn={L:10,m:!0},Vn={Cb:!0,m:!0},Ce={Cb:!0,m:!0},Yr={cc:!0,prefix:!0,$b:!0},Ln={prefix:!0,m:!0},Wn={L:1,m:!0},Hn={L:2,m:!0},Zr={L:3,m:!0},Qr={L:4,m:!0},eo={L:5,m:!0},to={L:6,m:!0},no={L:7,m:!0},ro={L:8,m:!0},oo={L:9,prefix:!0,m:!0},io={L:10,m:!0},so=o("class enum extends super const export import"),Kn=o("implements interface let package private protected public static yield"),rt=o("eval arguments"),uo=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"),ao=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Gn=RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),lo=RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"),ot=/[\n\r\u2028\u2029]/,it=/\r\n|[\n\r\u2028\u2029]/g,Se,Pt={kind:"loop"},co={kind:"switch"}},Lt=Lt=typeof globalThis>"u"?void 0:globalThis;vo(Lt.j||(Lt.j={}));function m(e,t){typeof e=="string"&&(e=we(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,u;for(u in this)typeof this[u]=="function"&&(i=u.match(e))&&(this.rb[i[1]]=this[u].bind(this));this.N=Ht(this,this.ra,null),this.Na=this.N.object,this.ra=we(this.ba.join(`
4
+ `),"polyfills"),this.ba=void 0,pt(this.ra),i=new b(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new b(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Xn={C:!0,kc:5},Jt={configurable:!0,enumerable:!0,writable:!1},A={configurable:!0,enumerable:!1,writable:!0},X={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Jn={configurable:!1,enumerable:!0,writable:!0},fr={STEP_ERROR:!0},xe={SCOPE_REFERENCE:!0},Ke={VALUE_IN_DESCRIPTOR:!0},Fe={REGEXP_TIMEOUT:!0},qn=[],ce=null,We=null,ge=typeof globalThis>"u"?void 0:globalThis,Co=["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();","};"];function qt(e){var t=e>>>0;return t===Number(e)?t:NaN}function He(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function pt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&pt(o,t,n)}}m.prototype.REGEXP_MODE=2;m.prototype.REGEXP_THREAD_TIMEOUT=1e3;m.prototype.POLYFILL_TIMEOUT=1e3;j=m.prototype;j.P=!1;j.Ka=!1;j.Kb=0;j.ic=0;function we(e,t){var n={},r;for(r in Xn)n[r]=Xn[r];return n.sourceFile=t,ge.j.parse(e,n)}j.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=we(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ge(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};j.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&yr(this,n,n.interval);var r=new b(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=We;We=this;try{var i=this.rb[r.type](e,n,r)}catch(u){if(u!==fr)throw this.value!==u&&(this.value=void 0),u}finally{We=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};j.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Ao(e,t){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 x(null),e.Z=new x(e.M),bo(e,t),ko(e,t),t.xa=e.M,e.g(t,"constructor",e.v,A),Eo(e,t),So(e,t),Bo(e,t),Fo(e,t),wo(e,t),Do(e,t),xo(e,t),To(e,t),Io(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,A),e.g(t,"parseInt",e.i(parseInt,!1),A),e.g(t,"parseFloat",e.i(parseFloat,!1),A),e.g(t,"isNaN",e.i(isNaN,!1),A),e.g(t,"isFinite",e.i(isFinite,!1),A);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(u){try{return i(u)}catch(p){k(e,e.Gb,p.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),A);n=function(i){return Yn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),A),n=function(i){return Yn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),A),n=function(i){Zn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),A),n=function(i){Zn(e,i)},e.g(t,"clearInterval",e.i(n,!1),A),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)}j.Wb=0;function bo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",u=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(u){u=u.split(/\s*,\s*/);for(var p=0;p<u.length;p++){var f=u[p];n.test(f)||k(e,e.T,"Invalid function argument: "+f)}u=u.join(", ")}try{var g=we("(function("+u+") {"+i+"})","function"+e.Wb++)}catch(y){k(e,e.T,"Invalid code: "+y.message)}return g.body.length!==1&&k(e,e.T,"Invalid code in function body"),Qt(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,A),e.g(e.O,"prototype",e.Z,A),e.g(e.Z,"constructor",e.O,A),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,X),e.Z.H="Function",r=function(o,i){var u=e.o[e.o.length-1];u.U=this,u.B=o,u.F=[],i!=null&&(i instanceof x?u.F=mr(e,i):k(e,e.j,"CreateListFromArrayLike called on non-object")),u.eb=!1},M(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var u=1;u<arguments.length;u++)i.F.push(arguments[u]);i.eb=!1},M(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(){return String(this)},M(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),A),r=function(){return this.valueOf()},M(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),A)}function ko(e,t){function n(o){o!=null||k(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return de(e)?this:e.s(e.M);if(!(o instanceof x)){var i=e.s(pe(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,A),e.g(e.M,"constructor",e.v,A),e.g(t,"Object",e.v,A),r=function(o){return n(o),le(e,Object.getOwnPropertyNames(o instanceof x?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),A),r=function(o){return n(o),o instanceof x&&(o=o.h),le(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),A),r=function(o){return o===null?e.s(null):(o instanceof x||k(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),A),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,u){return i=String(i),o instanceof x||k(e,e.j,"Object.defineProperty called on non-object: "+o),u instanceof x||k(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||k(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Ke,u.h),o},e.g(e.v,"defineProperty",e.i(r,!1),A),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){if(o instanceof x||k(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var u=Object.getOwnPropertyDescriptor(o.h,i),p=o.V[i];return o=o.Y[i],i=e.s(e.M),p||o?(e.g(i,"get",p),e.g(i,"set",o)):(e.g(i,"value",u.value),e.g(i,"writable",u.writable)),e.g(i,"configurable",u.configurable),e.g(i,"enumerable",u.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),A),r=function(o){return n(o),pe(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),A),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),A),r=function(o){return o instanceof x&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),A),M(e,e.v,"toString",x.prototype.toString),M(e,e.v,"toLocaleString",x.prototype.toString),M(e,e.v,"valueOf",x.prototype.valueOf),r=function(o){return n(this),this instanceof x?String(o)in this.h:this.hasOwnProperty(o)},M(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof x?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},M(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=pe(e,o),!o)return!1;if(o===this)return!0}},M(e,e.v,"isPrototypeOf",r)}function Eo(e,t){var n=function(r){var o=de(e)?this:De(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(qt(i))&&k(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,A),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),A),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),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(',');","}",");","})();","")}function So(e,t){var n=function(r){return r=arguments.length?ge.String(r):"",de(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,A),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),A),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)M(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(u){k(e,e.D,"localeCompare: "+u.message)}},M(e,e.J,"localeCompare",n),n=function(r,o,i){var u=String(this);if(o=o?Number(o):void 0,W(e,r,e.I)&&(r=r.data,Me(e,r,i),e.REGEXP_MODE===2)){if(ce)r=Ue(e,"string.split(separator, limit)",{string:u,separator:r,limit:o},r,i),r!==Fe&&i(le(e,r));else{var p=e.ha(),f=Ve(e,r,p,i);p.onmessage=function(g){clearTimeout(f),i(le(e,g.data))},p.postMessage(["split",u,r,o])}return}r=u.split(r,o),i(le(e,r))},Le(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=W(e,r,e.I)?r.data:new RegExp(r),Me(e,r,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Fe&&o(r&&le(e,r));else{var u=e.ha(),p=Ve(e,r,u,o);u.onmessage=function(f){clearTimeout(p),o(f.data&&le(e,f.data))},u.postMessage(["match",i,r])}else r=i.match(r),o(r&&le(e,r))},Le(e,e.J,"match",n),n=function(r,o){var i=String(this);if(W(e,r,e.I)?r=r.data:r=new RegExp(r),Me(e,r,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Fe&&o(r);else{var u=e.ha(),p=Ve(e,r,u,o);u.onmessage=function(f){clearTimeout(p),o(f.data)},u.postMessage(["search",i,r])}else o(i.search(r))},Le(e,e.J,"search",n),n=function(r,o,i){var u=String(this);if(o=String(o),W(e,r,e.I)&&(r=r.data,Me(e,r,i),e.REGEXP_MODE===2)){if(ce)r=Ue(e,"string.replace(substr, newSubstr)",{string:u,substr:r,newSubstr:o},r,i),r!==Fe&&i(r);else{var p=e.ha(),f=Ve(e,r,p,i);p.onmessage=function(g){clearTimeout(f),i(g.data)},p.postMessage(["replace",u,r,o])}return}i(u.replace(r,o))},Le(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;","};","})();","")}function Bo(e,t){e.mb=e.i(function(n){return n=ge.Boolean(n),de(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,A)}function Fo(e,t){var n=function(r){return r=arguments.length?ge.Number(r):0,de(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,A),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){k(e,e.D,o.message)}},M(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){k(e,e.D,"toLocaleString: "+i.message)}},M(e,e.aa,"toLocaleString",n)}function wo(e,t){var n=function(o,i){if(!de(e))return ge.Date();var u=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ge.Date,u)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,A),e.g(e.$,"now",e.i(Date.now,!1),A),e.g(e.$,"parse",e.i(Date.parse,!1),A),e.g(e.$,"UTC",e.i(Date.UTC,!1),A),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(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var u=this.data;u instanceof Date||k(e,e.j,o+" not called on a Date");for(var p=[],f=0;f<arguments.length;f++)p[f]=e.R(arguments[f]);return u[o].apply(u,p)}}(t[r]),M(e,e.$,t[r],n)}function Do(e,t){var n=function(r,o){if(de(e))var i=this;else{if(o===void 0&&W(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||k(e,e.T,"Invalid regexp flag: "+o);try{var u=new ge.RegExp(r,o)}catch(p){k(e,e.T,p.message)}return Yt(e,i,u),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,A),e.g(e.I.h.prototype,"global",void 0,X),e.g(e.I.h.prototype,"ignoreCase",void 0,X),e.g(e.I.h.prototype,"multiline",void 0,X),e.g(e.I.h.prototype,"source","(?:)",X),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(y){if(y){var v=le(e,y);return e.g(v,"index",y.index),e.g(v,"input",y.input),v}return null}var u=this.data;if(r=String(r),u.lastIndex=Number(e.G(this,"lastIndex")),Me(e,u,o),e.REGEXP_MODE===2)if(ce)r=Ue(e,"regexp.exec(string)",{string:r,regexp:u},u,o),r!==Fe&&(e.g(this,"lastIndex",u.lastIndex),o(i(r)));else{var p=e.ha(),f=Ve(e,u,p,o),g=this;p.onmessage=function(y){clearTimeout(f),e.g(g,"lastIndex",y.data[1]),o(i(y.data[0]))},p.postMessage(["exec",u,u.lastIndex,r])}else r=u.exec(r),e.g(this,"lastIndex",u.lastIndex),o(i(r))},Le(e,e.I,"exec",n)}function xo(e,t){function n(r){var o=e.i(function(i){var u=de(e)?this:e.Aa(o);return Wt(e,u,i),u},!0);return e.g(o,"prototype",e.Aa(e.D),A),e.g(o.h.prototype,"name",r,A),e.g(t,r,o,A),o}e.D=e.i(function(r){var o=de(e)?this:e.Aa(e.D);return Wt(e,o,r),o},!0),e.g(t,"Error",e.D,A),e.g(e.D.h.prototype,"message","",A),e.g(e.D.h.prototype,"name","Error",A),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function To(e,t){var n=e.s(e.M);e.g(t,"Math",n,A);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],X);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++)e.g(n,r[t],e.i(Math[r[t]],!1),A)}function Io(e,t){var n=e.s(e.M);e.g(t,"JSON",n,A),t=function(r){try{var o=JSON.parse(String(r))}catch(i){k(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?k(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=mr(e,o),o=o.filter(function(p){return typeof p=="string"||typeof p=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var u=JSON.stringify(r,o,i)}catch(p){k(e,e.j,p.message)}return u},e.g(n,"stringify",e.i(t,!1))}function W(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=pe(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Yt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,A),e.g(t,"source",n.source,X),e.g(t,"global",n.global,X),e.g(t,"ignoreCase",n.ignoreCase,X),e.g(t,"multiline",n.multiline,X)}function Wt(e,t,n){n&&e.g(t,"message",String(n),A),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;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({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
5
5
  `,r=0;r<n.length;r++){var u=n[r].Nb;o=n[r].Ob,u=u.source+":"+u.start.line+":"+u.start.ab,i=o?i+(" at "+o+" ("+u+`)
6
6
  `):i+(" at "+u+`
7
- `)}e.g(t,"stack",i.trim(),C)}j.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Co.join(`
8
- `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function Ue(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return ce.runInNewContext(t,n,i)}catch{o(null),k(e,e.D,"RegExp Timeout: "+r)}return Fe}function Me(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(ce)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{ce=require("vm")}catch{}r=!!ce}else r=!1;r||(n(null),k(e,e.D,"Regular expressions not supported: "+t))}function Ve(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{k(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}j.Aa=function(e){return this.s(e&&e.h.prototype)};j.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new x(e),W(this,e,this.D)&&(e.H="Error"),e};function De(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Yt(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,C),e.g(n,"constructor",r,C)):r.Ab=!0,e.g(r,"length",t,X),r.H="Function",r}function Zt(e,t,n,r){var o=Yt(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",X),o}j.i=function(e,t){return t=Yt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,X),t};j.ub=function(e){var t=Yt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,X),t};j.Ia=function(e){if(e instanceof x)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=De(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};j.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof x))throw Error("Object is not pseudo");if(W(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(W(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),W(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)pt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function le(e,t){for(var n=De(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function mr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Jt(e.G(t,"length"))||0,n}function pe(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}j.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||k(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(W(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&W(this,e,this.J)){var n=He(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=pe(this,e))};function pt(e,t,n){if(!(t instanceof x))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&W(e,t,e.J))return!0;if(W(e,t,e.J)){var r=He(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=pe(e,t));return!1}j.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||k(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&k(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||Qt(this).S;if(e instanceof x){if(W(this,e,this.J)){var i=He(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Jt(n),isNaN(n)&&k(this,this.ob,"Invalid array length"),n<i)for(u in e.h){var u=He(u);!isNaN(u)&&n<=u&&delete e.h[u]}}else isNaN(u=He(t))||(e.h.length=Math.max(i,u+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Ke&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{k(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Ke)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=pe(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&k(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&k(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&k(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};j.g.ac=function(){throw Error("Placeholder getter")};j.g.bc=function(){throw Error("Placeholder setter")};function M(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),C)}function Le(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),C)}function Qt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Wt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new vr(n,r,o),n||Ao(e,r.object),Ge(e,t,r),r}function en(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new vr(t,t.S,e)}function tn(e,t){for(var n=Qt(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&pt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||k(e,e.pb,t+" is not defined")}function gr(e,t,n){for(var r=Qt(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&k(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||pt(e,r.object,t)))return e.g(r.object,t,n);k(e,e.pb,t+" is not defined")}function Ge(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,u;for(u in t)if(u!=="loc"){var d=t[u];if(d&&typeof d=="object"){if(Array.isArray(d)){for(o=0;o<d.length;o++)if(d[o]&&d[o].constructor===i){var f=Ge(e,d[o],n);for(u in f)r[u]=f[u]}}else if(d.constructor===i)for(u in f=Ge(e,d,n),f)r[u]=f[u]}}}t.jb=r}for(u in r)r[u]===!0?e.g(n.object,u,void 0,Jn):e.g(n.object,u,Zt(e,r[u],n),Jn);return r}function de(e){return e.o[e.o.length-1].isConstructor}function nn(e,t){return t[0]===xe?tn(e,t[1]):e.G(t[0],t[1])}function rn(e,t,n){return t[0]===xe?gr(e,t[1],n):e.g(t[0],t[1],n)}function k(e,t,n){throw e.N?(n!==void 0&&t instanceof x&&(t=e.Aa(t),Lt(e,t,n)),Je(e,4,t),fr):n===void 0?t:n}function Je(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw W(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function z(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return z(e,t.left)+" "+t.operator+" "+z(e,t.right);case"CallExpression":return z(e,t.callee)+"(...)";case"ConditionalExpression":return z(e,t.test)+" ? "+z(e,t.da)+" : "+z(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=z(e,t.object);return e=z(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+z(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+z(e,t.K);case"UpdateExpression":return n=z(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Yn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var u=e.ya();if(i instanceof x&&i.H==="Function"){var d=i;u.type="CallExpression",r=r.scope}else{try{var f=we(String(i),"taskCode"+e.ic++)}catch(g){k(e,e.T,"Invalid code: "+g.message)}u.type="EvalProgram_",u.body=f.body,r=r.node.arguments[0],ct(u,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new jo(d,o,r,u,t?n:-1),yr(e,t,n),t.Db}function yr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function Zn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new b(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function on(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new b(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function _t(e,t){return t==null?e.Na:t instanceof x?t:(e=e.s(pe(e,t)),e.data=t,e)}j.Xb=function(){return this.N};j.Yb=function(){return this.o};j.ec=function(e){this.o=e};function b(e,t){this.node=e,this.scope=t}function vr(e,t,n){this.Va=e,this.S=t,this.object=n}function x(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}j=x.prototype;j.xa=null;j.H="Object";j.data=null;j.toString=function(){if(!We)return"[object Interpreter.Object]";if(!(this instanceof x))return String(this);if(this.H==="Array"){var e=qn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof x&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=qn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};j.valueOf=function(){return!We||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function jo(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++Ro,this.time=0}var Ro=0;m.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=De(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new b(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};m.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new b(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=nn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new b(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=rn(this,t.Fa,r))return t.ta=!0,t.ib=r,on(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};m.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new b(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new b(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof x||k(this,this.j,"'in' expects an object, not '"+t+"'"),n=pt(this,t,r);break;case"instanceof":W(this,t,this.O)||k(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof x?W(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};m.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop()};m.prototype.stepBreakStatement=function(e,t,n){Je(this,1,void 0,n.label&&n.label.name)};m.prototype.Hb=0;m.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new b(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=nn(this,o),o[0]===xe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new b(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof x&&!o.Ab||k(this,this.j,z(this,n.callee)+" is not a constructor"),o===this.qa)t.B=De(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof x||k(this,this.j,z(this,n.callee)+" is not a function"),e=o.node){for(n=Wt(this,e.body,o.Va),r=De(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=_t(this,t.B)),this.g(n.object,"this",t.B,Xt),t.value=void 0,new b(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=we(String(o),"eval"+this.Hb++)}catch(d){k(this,this.T,"Invalid code: "+d.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,ct(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Wt(this,r,n):Ge(this,r,n),this.value=void 0,new b(o,n)}else if(o.Ta)t.scope.S||(t.B=_t(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var u=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(d){t.value=d,u.za=!1}),this.za=!0,t.scope.S||(t.B=_t(this,t.B)),o.Za.apply(t.B,r)}else k(this,this.j,z(this,n.callee)+" is not callable")}};m.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new b(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new b(n.da,t.scope);if(!r&&n.alternate)return new b(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};m.prototype.stepContinueStatement=function(e,t,n){Je(this,2,void 0,n.label&&n.label.name)};m.prototype.stepDebuggerStatement=function(e){e.pop()};m.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new b(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new b(n.body,t.scope)};m.prototype.stepEmptyStatement=function(e){e.pop()};m.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=this.value};m.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new b(n.la,t.scope);e.pop(),this.value=t.value};m.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&k(this,this.T,"for-in loop variable declaration may not have an initializer"),new b(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new b(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof x)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=pe(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[xe,e.fa[0].id.name];else return t.pa=null,t=new b(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=rn(this,t.pa,e)))return on(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new b(n.body,t.scope)};m.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new b(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new b(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new b(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new b(n.update,t.scope)}};m.prototype.stepFunctionDeclaration=function(e){e.pop()};m.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=en(this,e)),t.value=Zt(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,Xt)};m.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[xe,n.name];else{if(t=tn(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};m.prototype.stepIfStatement=m.prototype.stepConditionalExpression;m.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new b(n.body,t.scope),t.labels=e,t};m.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),qt(this,n,t),t=n),e[e.length-1].value=t};m.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new b(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new b(n.right,t.scope)};m.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new b(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new b(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};m.prototype.stepNewExpression=m.prototype.stepCallExpression;m.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var u=o.key;if(u.type==="Identifier")i=u.name;else if(u.type==="Literal")i=u.value;else throw SyntaxError("Unknown object structure: "+u.type);return t.Pa=i,new b(o.value,t.scope)}for(u in t.Ja)n=t.Ja[u],"get"in n||"set"in n?this.g(t.u,u,Ke,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,u,n.init);e.pop(),e[e.length-1].value=t.u};m.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new b(e,t.scope);t.done=!0};m.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new b(n.K,t.scope);Je(this,3,t.value)};m.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=t.value};m.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new b(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new b(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new b(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};m.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=tn(this,"this")};m.prototype.stepThrowStatement=function(e,t,n){if(t.ka)k(this,t.value);else return t.ka=!0,new b(n.K,t.scope)};m.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new b(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=en(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new b(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new b(n.fb,t.scope);e.pop(),t.ea&&Je(this,t.ea.type,t.ea.value,t.ea.label)};m.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new b(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===xe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?k(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};m.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new b(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=nn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=rn(this,t.Ga,o))return t.ta=!0,t.ib=n,on(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};m.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(gr(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new b(o.ua,t.scope);o=n[++r]}e.pop()};m.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=en(this,t.scope,t.value),new b(n.body,e)):(t.Ca=!0,new b(n.object,t.scope))};m.prototype.stepWhileStatement=m.prototype.stepDoWhileStatement;ge.Interpreter=m;m.prototype.step=m.prototype.lb;m.prototype.run=m.prototype.Eb;m.prototype.appendCode=m.prototype.Jb;m.prototype.createObject=m.prototype.Aa;m.prototype.createObjectProto=m.prototype.s;m.prototype.createAsyncFunction=m.prototype.ub;m.prototype.createNativeFunction=m.prototype.i;m.prototype.getProperty=m.prototype.G;m.prototype.setProperty=m.prototype.g;m.prototype.nativeToPseudo=m.prototype.Ia;m.prototype.pseudoToNative=m.prototype.R;m.prototype.getGlobalScope=m.prototype.Xb;m.prototype.getStateStack=m.prototype.Yb;m.prototype.setStateStack=m.prototype.ec;m.VALUE_IN_DESCRIPTOR=Ke;const Oo=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),$o=e=>e.split(`
9
- `).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),d=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
7
+ `)}e.g(t,"stack",i.trim(),A)}j.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Co.join(`
8
+ `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function Ue(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return ce.runInNewContext(t,n,i)}catch{o(null),k(e,e.D,"RegExp Timeout: "+r)}return Fe}function Me(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(ce)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{ce=require("vm")}catch{}r=!!ce}else r=!1;r||(n(null),k(e,e.D,"Regular expressions not supported: "+t))}function Ve(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{k(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}j.Aa=function(e){return this.s(e&&e.h.prototype)};j.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new x(e),W(this,e,this.D)&&(e.H="Error"),e};function De(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Zt(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,A),e.g(n,"constructor",r,A)):r.Ab=!0,e.g(r,"length",t,X),r.H="Function",r}function Qt(e,t,n,r){var o=Zt(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",X),o}j.i=function(e,t){return t=Zt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,X),t};j.ub=function(e){var t=Zt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,X),t};j.Ia=function(e){if(e instanceof x)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Yt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=De(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};j.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof x))throw Error("Object is not pseudo");if(W(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(W(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),W(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)dt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function le(e,t){for(var n=De(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function mr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=qt(e.G(t,"length"))||0,n}function pe(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}j.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||k(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(W(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&W(this,e,this.J)){var n=He(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=pe(this,e))};function dt(e,t,n){if(!(t instanceof x))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&W(e,t,e.J))return!0;if(W(e,t,e.J)){var r=He(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=pe(e,t));return!1}j.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||k(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&k(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||en(this).S;if(e instanceof x){if(W(this,e,this.J)){var i=He(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=qt(n),isNaN(n)&&k(this,this.ob,"Invalid array length"),n<i)for(u in e.h){var u=He(u);!isNaN(u)&&n<=u&&delete e.h[u]}}else isNaN(u=He(t))||(e.h.length=Math.max(i,u+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Ke&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{k(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Ke)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=pe(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&k(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&k(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&k(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};j.g.ac=function(){throw Error("Placeholder getter")};j.g.bc=function(){throw Error("Placeholder setter")};function M(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),A)}function Le(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),A)}function en(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Ht(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new vr(n,r,o),n||Ao(e,r.object),Ge(e,t,r),r}function tn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new vr(t,t.S,e)}function nn(e,t){for(var n=en(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&dt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||k(e,e.pb,t+" is not defined")}function gr(e,t,n){for(var r=en(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&k(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||dt(e,r.object,t)))return e.g(r.object,t,n);k(e,e.pb,t+" is not defined")}function Ge(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,u;for(u in t)if(u!=="loc"){var p=t[u];if(p&&typeof p=="object"){if(Array.isArray(p)){for(o=0;o<p.length;o++)if(p[o]&&p[o].constructor===i){var f=Ge(e,p[o],n);for(u in f)r[u]=f[u]}}else if(p.constructor===i)for(u in f=Ge(e,p,n),f)r[u]=f[u]}}}t.jb=r}for(u in r)r[u]===!0?e.g(n.object,u,void 0,Jn):e.g(n.object,u,Qt(e,r[u],n),Jn);return r}function de(e){return e.o[e.o.length-1].isConstructor}function rn(e,t){return t[0]===xe?nn(e,t[1]):e.G(t[0],t[1])}function on(e,t,n){return t[0]===xe?gr(e,t[1],n):e.g(t[0],t[1],n)}function k(e,t,n){throw e.N?(n!==void 0&&t instanceof x&&(t=e.Aa(t),Wt(e,t,n)),Je(e,4,t),fr):n===void 0?t:n}function Je(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw W(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function z(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return z(e,t.left)+" "+t.operator+" "+z(e,t.right);case"CallExpression":return z(e,t.callee)+"(...)";case"ConditionalExpression":return z(e,t.test)+" ? "+z(e,t.da)+" : "+z(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=z(e,t.object);return e=z(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+z(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+z(e,t.K);case"UpdateExpression":return n=z(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Yn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var u=e.ya();if(i instanceof x&&i.H==="Function"){var p=i;u.type="CallExpression",r=r.scope}else{try{var f=we(String(i),"taskCode"+e.ic++)}catch(g){k(e,e.T,"Invalid code: "+g.message)}u.type="EvalProgram_",u.body=f.body,r=r.node.arguments[0],pt(u,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new jo(p,o,r,u,t?n:-1),yr(e,t,n),t.Db}function yr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function Zn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new b(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function sn(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new b(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function Ut(e,t){return t==null?e.Na:t instanceof x?t:(e=e.s(pe(e,t)),e.data=t,e)}j.Xb=function(){return this.N};j.Yb=function(){return this.o};j.ec=function(e){this.o=e};function b(e,t){this.node=e,this.scope=t}function vr(e,t,n){this.Va=e,this.S=t,this.object=n}function x(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}j=x.prototype;j.xa=null;j.H="Object";j.data=null;j.toString=function(){if(!We)return"[object Interpreter.Object]";if(!(this instanceof x))return String(this);if(this.H==="Array"){var e=qn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof x&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=qn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};j.valueOf=function(){return!We||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function jo(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++Ro,this.time=0}var Ro=0;m.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=De(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new b(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};m.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new b(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=rn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new b(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=on(this,t.Fa,r))return t.ta=!0,t.ib=r,sn(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};m.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new b(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new b(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof x||k(this,this.j,"'in' expects an object, not '"+t+"'"),n=dt(this,t,r);break;case"instanceof":W(this,t,this.O)||k(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof x?W(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};m.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop()};m.prototype.stepBreakStatement=function(e,t,n){Je(this,1,void 0,n.label&&n.label.name)};m.prototype.Hb=0;m.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new b(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=rn(this,o),o[0]===xe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new b(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof x&&!o.Ab||k(this,this.j,z(this,n.callee)+" is not a constructor"),o===this.qa)t.B=De(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof x||k(this,this.j,z(this,n.callee)+" is not a function"),e=o.node){for(n=Ht(this,e.body,o.Va),r=De(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=Ut(this,t.B)),this.g(n.object,"this",t.B,Jt),t.value=void 0,new b(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=we(String(o),"eval"+this.Hb++)}catch(p){k(this,this.T,"Invalid code: "+p.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,pt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Ht(this,r,n):Ge(this,r,n),this.value=void 0,new b(o,n)}else if(o.Ta)t.scope.S||(t.B=Ut(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var u=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(p){t.value=p,u.za=!1}),this.za=!0,t.scope.S||(t.B=Ut(this,t.B)),o.Za.apply(t.B,r)}else k(this,this.j,z(this,n.callee)+" is not callable")}};m.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new b(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new b(n.da,t.scope);if(!r&&n.alternate)return new b(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};m.prototype.stepContinueStatement=function(e,t,n){Je(this,2,void 0,n.label&&n.label.name)};m.prototype.stepDebuggerStatement=function(e){e.pop()};m.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new b(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new b(n.body,t.scope)};m.prototype.stepEmptyStatement=function(e){e.pop()};m.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=this.value};m.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new b(n.la,t.scope);e.pop(),this.value=t.value};m.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&k(this,this.T,"for-in loop variable declaration may not have an initializer"),new b(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new b(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof x)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=pe(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[xe,e.fa[0].id.name];else return t.pa=null,t=new b(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=on(this,t.pa,e)))return sn(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new b(n.body,t.scope)};m.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new b(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new b(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new b(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new b(n.update,t.scope)}};m.prototype.stepFunctionDeclaration=function(e){e.pop()};m.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=tn(this,e)),t.value=Qt(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,Jt)};m.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[xe,n.name];else{if(t=nn(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};m.prototype.stepIfStatement=m.prototype.stepConditionalExpression;m.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new b(n.body,t.scope),t.labels=e,t};m.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Yt(this,n,t),t=n),e[e.length-1].value=t};m.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new b(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new b(n.right,t.scope)};m.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new b(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new b(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};m.prototype.stepNewExpression=m.prototype.stepCallExpression;m.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var u=o.key;if(u.type==="Identifier")i=u.name;else if(u.type==="Literal")i=u.value;else throw SyntaxError("Unknown object structure: "+u.type);return t.Pa=i,new b(o.value,t.scope)}for(u in t.Ja)n=t.Ja[u],"get"in n||"set"in n?this.g(t.u,u,Ke,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,u,n.init);e.pop(),e[e.length-1].value=t.u};m.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new b(e,t.scope);t.done=!0};m.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new b(n.K,t.scope);Je(this,3,t.value)};m.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=t.value};m.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new b(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new b(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new b(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};m.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=nn(this,"this")};m.prototype.stepThrowStatement=function(e,t,n){if(t.ka)k(this,t.value);else return t.ka=!0,new b(n.K,t.scope)};m.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new b(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=tn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new b(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new b(n.fb,t.scope);e.pop(),t.ea&&Je(this,t.ea.type,t.ea.value,t.ea.label)};m.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new b(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===xe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?k(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};m.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new b(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=rn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=on(this,t.Ga,o))return t.ta=!0,t.ib=n,sn(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};m.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(gr(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new b(o.ua,t.scope);o=n[++r]}e.pop()};m.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=tn(this,t.scope,t.value),new b(n.body,e)):(t.Ca=!0,new b(n.object,t.scope))};m.prototype.stepWhileStatement=m.prototype.stepDoWhileStatement;ge.Interpreter=m;m.prototype.step=m.prototype.lb;m.prototype.run=m.prototype.Eb;m.prototype.appendCode=m.prototype.Jb;m.prototype.createObject=m.prototype.Aa;m.prototype.createObjectProto=m.prototype.s;m.prototype.createAsyncFunction=m.prototype.ub;m.prototype.createNativeFunction=m.prototype.i;m.prototype.getProperty=m.prototype.G;m.prototype.setProperty=m.prototype.g;m.prototype.nativeToPseudo=m.prototype.Ia;m.prototype.pseudoToNative=m.prototype.R;m.prototype.getGlobalScope=m.prototype.Xb;m.prototype.getStateStack=m.prototype.Yb;m.prototype.setStateStack=m.prototype.ec;m.VALUE_IN_DESCRIPTOR=Ke;const Oo=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),$o=e=>e.split(`
9
+ `).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),p=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
10
10
  ${t}
11
- ${d}
11
+ ${p}
12
12
  `}).filter(Boolean).join(`
13
- `),Qn=e=>e+"JSON",No=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:u})=>{const d={...r,...o},f=Oo({builder:e,context:t,event:n,state:d}),g=f.map(([D])=>{const R=Qn(D);return`var ${D} = ${R} === undefined ? undefined : JSON.parse(${R});`}).join(`
14
- `),y=$o(u);if(y===""){q.warn("Skipping evaluation of empty code block.");return}const A=`
13
+ `),Qn=e=>e+"JSON",No=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:u})=>{const p={...r,...o},f=Oo({builder:e,context:t,event:n,state:p}),g=f.map(([D])=>{const R=Qn(D);return`var ${D} = ${R} === undefined ? undefined : JSON.parse(${R});`}).join(`
14
+ `),y=$o(u);if(y===""){q.warn("Skipping evaluation of empty code block.");return}const v=`
15
15
  function theFunction() {
16
16
  ${g}
17
17
 
18
18
  ${y}
19
19
  }
20
20
  theFunction();
21
- `,T=(D,R)=>{const V=hr(d,D,R);i==null||i(V)},I=function(D,R){f.forEach(([V,Z])=>{const E=JSON.stringify(Z);D.setProperty(R,Qn(V),E)}),D.setProperty(R,"setRootState",D.createNativeFunction(T))};try{const D=new m(A,I);return D.run(),D.pseudoToNative(D.value)}catch(D){q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:D});return}};function ze({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:u=!0}){if(e===""){q.warn("Skipping evaluation of empty code block.");return}const d={isEditing:te(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()},y={code:u&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,builder:d,context:t,event:i,rootSetState:o,rootState:r,localState:n};try{return No(y)}catch(A){q.error("Failed code evaluation: "+A.message,{code:e});return}}const Po=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Xe(e),u={...i,properties:{...i.properties},actions:{...i.actions}};for(const d in e.bindings){const f=e.bindings[d],g=ze({code:f,localState:n,rootState:r,rootSetState:o,context:t});hr(u,d,g)}return u};function sn({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const u=e;return n?Po({block:u,localState:r,rootState:o,rootSetState:i,context:t}):u}const _o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ne=e=>e!=null,Cr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${_o(n)}: ${r};`}).filter(ne),Uo=e=>Cr(e).join(`
22
- `),Ut=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
21
+ `,T=(D,R)=>{const V=hr(p,D,R);i==null||i(V)},I=function(D,R){f.forEach(([V,Z])=>{const E=JSON.stringify(Z);D.setProperty(R,Qn(V),E)}),D.setProperty(R,"setRootState",D.createNativeFunction(T))};try{const D=new m(v,I);return D.run(),D.pseudoToNative(D.value)}catch(D){q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:D});return}};function ze({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:u=!0}){if(e===""){q.warn("Skipping evaluation of empty code block.");return}const p={isEditing:te(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()},y={code:u&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,builder:p,context:t,event:i,rootSetState:o,rootState:r,localState:n};try{return No(y)}catch(v){q.error("Failed code evaluation: "+v.message,{code:e});return}}const Po=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Xe(e),u={...i,properties:{...i.properties},actions:{...i.actions}};for(const p in e.bindings){const f=e.bindings[p],g=ze({code:f,localState:n,rootState:r,rootSetState:o,context:t});hr(u,p,g)}return u};function at({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const u=e;return n?Po({block:u,localState:r,rootState:o,rootSetState:i,context:t}):u}const _o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ne=e=>e!=null,Cr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${_o(n)}: ${r};`}).filter(ne),Uo=e=>Cr(e).join(`
22
+ `),Mt=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
23
23
  ${Uo(n)}
24
24
  }`;return e?`${e} {
25
25
  ${r}
26
- }`:r},Mo=a.defineComponent({render(){return a.h("style",{id:this.id,innerHTML:this.styles})},name:"inlined-styles",props:["styles","id"]}),dt=$(Mo,[["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]),Vo=a.defineComponent({name:"block-styles",components:{InlinedStyles:dt},props:["block","context"],data(){return{processedBlock:sn({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),TARGET:re}},computed:{canShowBlock(){return ne(this.processedBlock.hide)?!this.processedBlock.hide:ne(this.processedBlock.show)?this.processedBlock.show:!0},css(){var y;const e=this.processedBlock.responsiveStyles,t=this.context.content,n=pr(((y=t==null?void 0:t.meta)==null?void 0:y.breakpoints)||{}),r=e==null?void 0:e.large,o=e==null?void 0:e.medium,i=e==null?void 0:e.small,u=this.processedBlock.id;if(!u)return"";const d=r?Ut({className:u,styles:r}):"",f=o?Ut({className:u,styles:o,mediaQuery:zn("medium",n)}):"",g=i?Ut({className:u,styles:i,mediaQuery:zn("small",n)}):"";return[d,f,g].join(" ")}}});function Lo(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(a.openBlock(),a.createBlock(u,{key:0,styles:e.css},null,8,["styles"])):a.createCommentVNode("v-if",!0)}const un=$(Vo,[["render",Lo],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]),Wo=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"}));function Ho(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Ko=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Go=e=>typeof e=="string"&&Ko.includes(e.toLowerCase()),zo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=sn({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
26
+ }`:r},Mo=a.defineComponent({render(){return a.h("style",{id:this.id,innerHTML:this.styles})},name:"inlined-styles",props:["styles","id"]}),ht=$(Mo,[["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]),Vo=a.defineComponent({name:"block-styles",components:{InlinedStyles:ht},props:["block","context"],data(){return{TARGET:re}},computed:{canShowBlock(){const e=at({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return ne(e.hide)?!e.hide:ne(e.show)?e.show:!0},css(){var v;const e=at({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),t=e.responsiveStyles,n=this.context.content,r=pr(((v=n==null?void 0:n.meta)==null?void 0:v.breakpoints)||{}),o=t==null?void 0:t.large,i=t==null?void 0:t.medium,u=t==null?void 0:t.small,p=e.id;if(!p)return"";const f=o?Mt({className:p,styles:o}):"",g=i?Mt({className:p,styles:i,mediaQuery:zn("medium",r)}):"",y=u?Mt({className:p,styles:u,mediaQuery:zn("small",r)}):"";return[f,g,y].join(" ")}}});function Lo(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(a.openBlock(),a.createBlock(u,{key:0,styles:e.css},null,8,["styles"])):a.createCommentVNode("v-if",!0)}const un=$(Vo,[["render",Lo],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]),Wo=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"}));function Ho(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Ko=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Go=e=>typeof e=="string"&&Ko.includes(e.toLowerCase()),zo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=at({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
27
27
  Could not find a registered component named "${r}".
28
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},Xo=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=ze({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),u=n.itemName||(i?i+"Item":"item");return o.map((f,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:f,[u]:f,[`$${u}Index`]:g}},block:r}))},Jo=()=>Promise.resolve().then(()=>Wo).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",e),e}),qo=()=>Promise.resolve().then(()=>require("./repeated-block.6e7688cb.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Yo=()=>Promise.resolve().then(()=>require("./component-ref.0528b1a0.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Zo=()=>Promise.resolve().then(()=>require("./block-wrapper.6bb62da5.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Qo=a.defineComponent({name:"block",components:{ComponentRef:a.defineAsyncComponent(Yo),BlockWrapper:a.defineAsyncComponent(Zo),RepeatedBlock:a.defineAsyncComponent(qo),BlockStyles:a.defineAsyncComponent(Jo)},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:Go}},computed:{blockComponent(){return zo({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return Xo({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:sn({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},childrenWithoutParentComponent(){var t,n;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?(n=this.processedBlock.children)!=null?n:[]:[]},componentRefProps(){var e,t,n,r,o,i;return{blockChildren:(e=this.processedBlock.children)!=null?e:[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...Ho(this.processedBlock),builderContext:this.context,...((n=this.blockComponent)==null?void 0:n.name)==="Symbol"||((r=this.blockComponent)==null?void 0:r.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((o=this.blockComponent)==null?void 0:o.noWrap)===!0,isInteractive:!((i=this.blockComponent)!=null&&i.isRSC)}}}});function ei(e,t,n,r,o,i){var A;const u=a.resolveComponent("block-wrapper"),d=a.resolveComponent("repeated-block"),f=a.resolveComponent("component-ref"),g=a.resolveComponent("block",!0),y=a.resolveComponent("block-styles");return e.canShowBlock?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[(A=e.blockComponent)!=null&&A.noWrap?(a.openBlock(),a.createBlock(f,a.normalizeProps(a.mergeProps({key:1},e.componentRefProps)),null,16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.isEmptyHtmlElement(e.Tag)?(a.openBlock(),a.createBlock(u,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1},null,8,["Wrapper","block","context"])):a.createCommentVNode("v-if",!0),!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.repeatItem,(T,I)=>(a.openBlock(),a.createBlock(d,{key:I,repeatContext:T.context,block:T.block,registeredComponents:e.registeredComponents},null,8,["repeatContext","block","registeredComponents"]))),128)):a.createCommentVNode("v-if",!0),!e.isEmptyHtmlElement(e.Tag)&&!e.repeatItem?(a.openBlock(),a.createBlock(u,{key:2,Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0},{default:a.withCtx(()=>[a.createVNode(f,a.normalizeProps(a.guardReactiveProps(e.componentRefProps)),null,16),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(T,I)=>(a.openBlock(),a.createBlock(g,{key:"block-"+T.id,block:T,context:e.childrenContext,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"]))),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(T,I)=>(a.openBlock(),a.createBlock(y,{key:"block-style-"+T.id,block:T,context:e.childrenContext},null,8,["block","context"]))),128))]),_:1},8,["Wrapper","block","context"])):a.createCommentVNode("v-if",!0)],64))],64)):a.createCommentVNode("v-if",!0)}const an=$(Qo,[["render",ei],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]),ti=Object.freeze(Object.defineProperty({__proto__:null,default:an},Symbol.toStringTag,{value:"Module"})),ni=a.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;te()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;te()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const ri=["builder-path","builder-parent-id"];function oi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(e.className+" div-178o76acnws"),"builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t[0]||(t[0]=u=>e.onClick()),onMouseenter:t[1]||(t[1]=u=>e.onMouseEnter()),onKeypress:t[2]||(t[2]=u=>e.onClick())},{}),[a.renderSlot(e.$slots,"default",{},void 0,!0)],16,ri)}const ii=$(ni,[["render",oi],["__scopeId","data-v-1f8aab9f"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]),si=Symbol(),at={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}},key:si},ui=Symbol(),Ar={Components:{registeredComponents:{}},key:ui},ai=a.defineComponent({name:"builder-blocks",components:{BlocksWrapper:ii,Block:an,BlockStyles:un},props:["blocks","parent","path","styleProp","context","registeredComponents"],inject:{builderContext:at.key,componentsContext:Ar.key}});function li(e,t,n,r,o,i){const u=a.resolveComponent("block"),d=a.resolveComponent("block-styles"),f=a.resolveComponent("blocks-wrapper");return a.openBlock(),a.createBlock(f,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp},{default:a.withCtx(()=>[e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.blocks,(g,y)=>(a.openBlock(),a.createBlock(u,{key:"render-block-"+g.id,block:g,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||e.componentsContext.registeredComponents},null,8,["block","context","registeredComponents"]))),128)):a.createCommentVNode("v-if",!0),e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.blocks,(g,y)=>(a.openBlock(),a.createBlock(d,{key:"block-style-"+g.id,block:g,context:e.context||e.builderContext},null,8,["block","context"]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["blocks","parent","path","styleProp"])}const ht=$(ai,[["render",li],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]),ci=a.defineComponent({name:"builder-columns",components:{InlinedStyles:dt,Blocks:ht},props:["js","space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:re}},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
28
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},Xo=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=ze({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),u=n.itemName||(i?i+"Item":"item");return o.map((f,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:f,[u]:f,[`$${u}Index`]:g}},block:r}))},Jo=()=>Promise.resolve().then(()=>Wo).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",e),e}),qo=()=>Promise.resolve().then(()=>require("./repeated-block.2c467c57.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Yo=()=>Promise.resolve().then(()=>require("./component-ref.40439a7f.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Zo=()=>Promise.resolve().then(()=>require("./block-wrapper.8441fbe1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Qo=a.defineComponent({name:"block",components:{ComponentRef:a.defineAsyncComponent(Yo),BlockWrapper:a.defineAsyncComponent(Zo),RepeatedBlock:a.defineAsyncComponent(qo),BlockStyles:a.defineAsyncComponent(Jo)},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:Go}},computed:{blockComponent(){return zo({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return Xo({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:at({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},childrenWithoutParentComponent(){var t,n;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?(n=this.processedBlock.children)!=null?n:[]:[]},componentRefProps(){var e,t,n,r,o,i;return{blockChildren:(e=this.processedBlock.children)!=null?e:[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...Ho(this.processedBlock),builderContext:this.context,...((n=this.blockComponent)==null?void 0:n.name)==="Symbol"||((r=this.blockComponent)==null?void 0:r.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((o=this.blockComponent)==null?void 0:o.noWrap)===!0,isInteractive:!((i=this.blockComponent)!=null&&i.isRSC)}}}});function ei(e,t,n,r,o,i){var v;const u=a.resolveComponent("block-wrapper"),p=a.resolveComponent("repeated-block"),f=a.resolveComponent("component-ref"),g=a.resolveComponent("block",!0),y=a.resolveComponent("block-styles");return e.canShowBlock?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[(v=e.blockComponent)!=null&&v.noWrap?(a.openBlock(),a.createBlock(f,a.normalizeProps(a.mergeProps({key:1},e.componentRefProps)),null,16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.isEmptyHtmlElement(e.Tag)?(a.openBlock(),a.createBlock(u,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1},null,8,["Wrapper","block","context"])):a.createCommentVNode("v-if",!0),!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.repeatItem,(T,I)=>(a.openBlock(),a.createBlock(p,{key:I,repeatContext:T.context,block:T.block,registeredComponents:e.registeredComponents},null,8,["repeatContext","block","registeredComponents"]))),128)):a.createCommentVNode("v-if",!0),!e.isEmptyHtmlElement(e.Tag)&&!e.repeatItem?(a.openBlock(),a.createBlock(u,{key:2,Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0},{default:a.withCtx(()=>[a.createVNode(f,a.normalizeProps(a.guardReactiveProps(e.componentRefProps)),null,16),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(T,I)=>(a.openBlock(),a.createBlock(g,{key:"block-"+T.id,block:T,context:e.childrenContext,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"]))),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(T,I)=>(a.openBlock(),a.createBlock(y,{key:"block-style-"+T.id,block:T,context:e.childrenContext},null,8,["block","context"]))),128))]),_:1},8,["Wrapper","block","context"])):a.createCommentVNode("v-if",!0)],64))],64)):a.createCommentVNode("v-if",!0)}const an=$(Qo,[["render",ei],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]),ti=Object.freeze(Object.defineProperty({__proto__:null,default:an},Symbol.toStringTag,{value:"Module"})),ni=a.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;te()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;te()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const ri=["builder-path","builder-parent-id"];function oi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(e.className+" div-2flfunvabst"),"builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t[0]||(t[0]=u=>e.onClick()),onMouseenter:t[1]||(t[1]=u=>e.onMouseEnter()),onKeypress:t[2]||(t[2]=u=>e.onClick())},{}),[a.renderSlot(e.$slots,"default",{},void 0,!0)],16,ri)}const ii=$(ni,[["render",oi],["__scopeId","data-v-1f8aab9f"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]),si=Symbol(),lt={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}},key:si},ui=Symbol(),Ar={Components:{registeredComponents:{}},key:ui},ai=a.defineComponent({name:"builder-blocks",components:{BlocksWrapper:ii,Block:an,BlockStyles:un},props:["blocks","parent","path","styleProp","context","registeredComponents"],inject:{builderContext:lt.key,componentsContext:Ar.key}});function li(e,t,n,r,o,i){const u=a.resolveComponent("block"),p=a.resolveComponent("block-styles"),f=a.resolveComponent("blocks-wrapper");return a.openBlock(),a.createBlock(f,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp},{default:a.withCtx(()=>[e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.blocks,(g,y)=>(a.openBlock(),a.createBlock(u,{key:"render-block-"+g.id,block:g,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||e.componentsContext.registeredComponents},null,8,["block","context","registeredComponents"]))),128)):a.createCommentVNode("v-if",!0),e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.blocks,(g,y)=>(a.openBlock(),a.createBlock(p,{key:"block-style-"+g.id,block:g,context:e.context||e.builderContext},null,8,["block","context"]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["blocks","parent","path","styleProp"])}const ft=$(ai,[["render",li],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]),ci=a.defineComponent({name:"builder-columns",components:{InlinedStyles:ht,Blocks:ft},props:["js","space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:re}},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
29
29
  @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
30
30
  .${this.builderBlock.id}-breakpoints {
31
31
  flex-direction: var(--flex-dir-tablet);
@@ -49,27 +49,27 @@ theFunction();
49
49
  margin-left: var(--column-margin-left-mobile) !important;
50
50
  }
51
51
  },
52
- `}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return pr(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});function pi(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles"),d=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`),style:e.columnsCssVars},{}),[e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:0,styles:e.columnsStyles},null,8,["styles"])):a.createCommentVNode("v-if",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,g)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:g,class:"builder-column div-16nol0lwi20-2",style:e.columnCssVars(g)},{}),[a.createVNode(d,{path:`component.options.columns.${g}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:f.blocks},null,8,["path","parent","context","registeredComponents","blocks"])],16))),128))],16)}const br=$(ci,[["render",pi],["__scopeId","data-v-7be099dc"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]),di=a.defineComponent({name:"builder-fragment-component",props:[]});function hi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("span",null,[a.renderSlot(e.$slots,"default")])}const kr=$(di,[["render",hi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);function er(e){return e.replace(/http(s)?:/,"")}function fi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function mi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function Mt(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${fi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[mi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const gi=a.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)==null?void 0:n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),Mt(t)}else if(this.image&&!this.srcset)return Mt(t);return Mt(t)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const yi=["srcset"],vi=["alt","role","src","srcset","sizes"],Ci={key:2,class:"div-1be3j8m9ewb-2"};function Ai(e,t,n,r,o,i){var u,d,f,g;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("picture",null,[e.webpSrcSet?(a.openBlock(),a.createElementBlock("source",{key:0,type:"image/webp",srcset:e.webpSrcSet},null,8,yi)):a.createCommentVNode("v-if",!0),a.createElementVNode("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:a.normalizeStyle({objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss}),class:a.normalizeClass(e._classStringToObject("builder-image"+(e.className?" "+e.className:"")+" img-1be3j8m9ewb")),src:e.image,srcset:e.srcSetToUse,sizes:e.sizes},null,14,vi)]),e.aspectRatio&&!(((d=(u=e.builderBlock)==null?void 0:u.children)==null?void 0:d.length)&&e.fitContent)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"builder-image-sizer div-1be3j8m9ewb",style:a.normalizeStyle({paddingTop:e.aspectRatio*100+"%"})},null,4)):a.createCommentVNode("v-if",!0),((g=(f=e.builderBlock)==null?void 0:f.children)==null?void 0:g.length)&&e.fitContent?a.renderSlot(e.$slots,"default",{key:1},void 0,!0):a.createCommentVNode("v-if",!0),!e.fitContent&&e.$slots.default?(a.openBlock(),a.createElementBlock("div",Ci,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.createCommentVNode("v-if",!0)],64)}const Er=$(gi,[["render",Ai],["__scopeId","data-v-58ca75d1"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]),bi=a.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:lt}}});function ki(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("section",a.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.renderSlot(e.$slots,"default")],16)}const Br=$(bi,[["render",ki],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]),ut=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Ei=({canTrack:e,content:t})=>!(!(ut(t).length>0)||!e);function Bi(e,t,n){var u;function r(){function d(D,R,V){let Z="";if(V){const E=new Date;E.setTime(E.getTime()+V*24*60*60*1e3),Z="; expires="+E.toUTCString()}document.cookie=D+"="+(R||"")+Z+"; path=/; Secure; SameSite=None"}function f(D){const R=D+"=",V=document.cookie.split(";");for(let Z=0;Z<V.length;Z++){let E=V[Z];for(;E.charAt(0)===" ";)E=E.substring(1,E.length);if(E.indexOf(R)===0)return E.substring(R.length,E.length)}return null}const g=`builder.tests.${e}`,y=f(g),A=t.map(D=>D.id).concat(e);if(y&&A.includes(y))return y;let T=0;const I=Math.random();for(let D=0;D<t.length;D++){const R=t[D],V=R.testRatio;if(T+=V,I<T)return d(g,R.id),R.id}return d(g,e),e}const o=r(),i=(u=document.currentScript)==null?void 0:u.previousElementSibling;if(n){i.remove();const d=document.currentScript;d==null||d.remove()}else{const d=t.concat({id:e}).filter(f=>f.id!==o).map(f=>`.variant-${f.id} { display: none; }
53
- `).join("");i.innerHTML=d}}function Si(e,t,n){var f;if(!navigator.cookieEnabled)return;function r(g){const y=g+"=",A=document.cookie.split(";");for(let T=0;T<A.length;T++){let I=A[T];for(;I.charAt(0)===" ";)I=I.substring(1,I.length);if(I.indexOf(y)===0)return I.substring(y.length,I.length)}return null}const o=`builder.tests.${t}`,i=r(o),u=(f=document.currentScript)==null?void 0:f.parentElement,d=e===t;if(i===e){if(d)return;u==null||u.removeAttribute("hidden"),u==null||u.removeAttribute("aria-hidden")}else{d&&(n?u==null||u.remove():(u==null||u.setAttribute("hidden","true"),u==null||u.setAttribute("aria-hidden","true")));return}}const Fi=e=>e==="react"||e==="reactNative",Sr=Fi(re),Fr="builderIoAbTest",wr="builderIoRenderContent",wi=()=>{const e=Bi.toString().replace(/\s+/g," "),t=Si.toString().replace(/\s+/g," ");return`
52
+ `}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return pr(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});function pi(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles"),p=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`),style:e.columnsCssVars},{}),[e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:0,styles:e.columnsStyles},null,8,["styles"])):a.createCommentVNode("v-if",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,g)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:g,class:"builder-column div-16nol0lwi20-2",style:e.columnCssVars(g)},{}),[a.createVNode(p,{path:`component.options.columns.${g}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:f.blocks},null,8,["path","parent","context","registeredComponents","blocks"])],16))),128))],16)}const br=$(ci,[["render",pi],["__scopeId","data-v-7be099dc"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]),di=a.defineComponent({name:"builder-fragment-component",props:[]});function hi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("span",null,[a.renderSlot(e.$slots,"default")])}const kr=$(di,[["render",hi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);function er(e){return e.replace(/http(s)?:/,"")}function fi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function mi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function Vt(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${fi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[mi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const gi=a.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)==null?void 0:n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),Vt(t)}else if(this.image&&!this.srcset)return Vt(t);return Vt(t)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});const yi=["srcset"],vi=["alt","role","src","srcset","sizes"],Ci={key:2,class:"div-1be3j8m9ewb-2"};function Ai(e,t,n,r,o,i){var u,p,f,g;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("picture",null,[e.webpSrcSet?(a.openBlock(),a.createElementBlock("source",{key:0,type:"image/webp",srcset:e.webpSrcSet},null,8,yi)):a.createCommentVNode("v-if",!0),a.createElementVNode("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:a.normalizeStyle({objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss}),class:a.normalizeClass(e._classStringToObject("builder-image"+(e.className?" "+e.className:"")+" img-1be3j8m9ewb")),src:e.image,srcset:e.srcSetToUse,sizes:e.sizes},null,14,vi)]),e.aspectRatio&&!(((p=(u=e.builderBlock)==null?void 0:u.children)==null?void 0:p.length)&&e.fitContent)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"builder-image-sizer div-1be3j8m9ewb",style:a.normalizeStyle({paddingTop:e.aspectRatio*100+"%"})},null,4)):a.createCommentVNode("v-if",!0),((g=(f=e.builderBlock)==null?void 0:f.children)==null?void 0:g.length)&&e.fitContent?a.renderSlot(e.$slots,"default",{key:1},void 0,!0):a.createCommentVNode("v-if",!0),!e.fitContent&&e.$slots.default?(a.openBlock(),a.createElementBlock("div",Ci,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.createCommentVNode("v-if",!0)],64)}const Er=$(gi,[["render",Ai],["__scopeId","data-v-58ca75d1"],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]),bi=a.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:ct}}});function ki(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("section",a.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.renderSlot(e.$slots,"default")],16)}const Sr=$(bi,[["render",ki],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]),ut=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Ei=({canTrack:e,content:t})=>!(!(ut(t).length>0)||!e);function Si(e,t,n){var u;function r(){function p(D,R,V){let Z="";if(V){const E=new Date;E.setTime(E.getTime()+V*24*60*60*1e3),Z="; expires="+E.toUTCString()}document.cookie=D+"="+(R||"")+Z+"; path=/; Secure; SameSite=None"}function f(D){const R=D+"=",V=document.cookie.split(";");for(let Z=0;Z<V.length;Z++){let E=V[Z];for(;E.charAt(0)===" ";)E=E.substring(1,E.length);if(E.indexOf(R)===0)return E.substring(R.length,E.length)}return null}const g=`builder.tests.${e}`,y=f(g),v=t.map(D=>D.id).concat(e);if(y&&v.includes(y))return y;let T=0;const I=Math.random();for(let D=0;D<t.length;D++){const R=t[D],V=R.testRatio;if(T+=V,I<T)return p(g,R.id),R.id}return p(g,e),e}const o=r(),i=(u=document.currentScript)==null?void 0:u.previousElementSibling;if(n){i.remove();const p=document.currentScript;p==null||p.remove()}else{const p=t.concat({id:e}).filter(f=>f.id!==o).map(f=>`.variant-${f.id} { display: none; }
53
+ `).join("");i.innerHTML=p}}function Bi(e,t,n){var f;if(!navigator.cookieEnabled)return;function r(g){const y=g+"=",v=document.cookie.split(";");for(let T=0;T<v.length;T++){let I=v[T];for(;I.charAt(0)===" ";)I=I.substring(1,I.length);if(I.indexOf(y)===0)return I.substring(y.length,I.length)}return null}const o=`builder.tests.${t}`,i=r(o),u=(f=document.currentScript)==null?void 0:f.parentElement,p=e===t;if(i===e){if(p)return;u==null||u.removeAttribute("hidden"),u==null||u.removeAttribute("aria-hidden")}else{p&&(n?u==null||u.remove():(u==null||u.setAttribute("hidden","true"),u==null||u.setAttribute("aria-hidden","true")));return}}const Fi=e=>e==="react"||e==="reactNative",Br=Fi(re),Fr="builderIoAbTest",wr="builderIoRenderContent",wi=()=>{const e=Si.toString().replace(/\s+/g," "),t=Bi.toString().replace(/\s+/g," ");return`
54
54
  window.${Fr} = ${e}
55
55
  window.${wr} = ${t}
56
56
  `},Di=(e,t)=>`
57
- window.${Fr}("${t}",${JSON.stringify(e)}, ${Sr})`,xi=({contentId:e,variationId:t})=>`
58
- window.${wr}("${t}", "${e}", ${Sr})`,Ti={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ii={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&!!n.find(o=>o.get("width"))&&(!!n.find(i=>!i.get("width"))||n.reduce((d,f)=>d+f.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ji={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ri={name:"Image",static:!0,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",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(u,d=6e4){return new Promise((f,g)=>{const y=document.createElement("img");let A=!1;y.onload=()=>{A=!0,f(y)},y.addEventListener("error",T=>{console.warn("Image load failed",T.error),g(T.error)}),y.src=u,setTimeout(()=>{A||g(new Error("Image load timed out"))},d)})}function r(u){return Math.round(u*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(u=>u.blob()).then(u=>{u.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(u=>{const d=e.get("aspectRatio");e.get("image")===o&&(!d||d===.7041)&&u.width&&u.height&&(e.set("aspectRatio",r(u.height/u.width)),e.set("height",u.height),e.set("width",u.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Oi={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},$i={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Ni={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},Pi=a.defineComponent({name:"builder-text",props:["text"]}),_i=["innerHTML"];function Ui(e,t,n,r,o,i){var u;return a.openBlock(),a.createElementBlock("span",{class:"builder-text",innerHTML:((u=e.text)==null?void 0:u.toString())||"",style:{outline:"none"}},null,8,_i)}const Dr=$(Pi,[["render",Ui],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]),Mi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},Vi=a.defineComponent({name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","attributes","preload","fit","position","video","posterImage"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.attributes,...this.videoProps}}}}),Li=["preload","src","poster"];function Wi(e,t,n,r,o,i){var u;return a.openBlock(),a.createElementBlock("video",a.mergeProps({preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(u=e.attributes)==null?void 0:u.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage},e.spreadProps),null,16,Li)}const xr=$(Vi,[["render",Wi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]),Hi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Ki=["text/javascript","application/javascript","application/ecmascript"],Gi=e=>Ki.includes(e.type),zi=a.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(Gi(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`Embed`: Error running script:",r)}}}}}),Xi=["innerHTML"];function Ji(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:e.content},null,8,Xi)}const qi=$(zi,[["render",Ji],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]),Yi=a.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:te,filterAttrs:lt}}}),Zi=["alt","src"];function Qi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("img",a.mergeProps({style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},key:e.isEditing()&&e.imgSrc||"default-key",alt:e.altText,src:e.imgSrc||e.image},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,Zi)}const es=$(Yi,[["render",Qi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]),ts={name:"Raw:Img",hideFromInsertMenu:!0,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",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},ns=a.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`CustomCode`: Error running script:",r)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}}),rs=["innerHTML"];function os(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"elem",class:a.normalizeClass(e._classStringToObject("builder-custom-code"+(e.replaceNodes?" replace-nodes":""))),innerHTML:e.code},null,10,rs)}const is=$(ns,[["render",os],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]),ss={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},tr=()=>[{component:lr,...Ti},{component:br,...Ii},{component:is,...ss},{component:qi,...Hi},{component:kr,...ji},{component:Er,...Ri},{component:es,...ts},{component:Br,...Oi},{component:Xr,...$i},{component:Dr,...Ni},{component:xr,...Mi}],nr=[],Tr=e=>({type:"builder.registerComponent",data:Ht(e)}),us=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},as=e=>typeof e=="function"?us(e):Xe(e),Ht=({inputs:e,...t})=>({...Xe(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:as(i)}),{}))}),ls=e=>{var i,u;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=(u=e.fileUrl)!=null?u:(i=e==null?void 0:e.files)==null?void 0:i.regular;let o="";if(r&&t&&n&&(o+=`
57
+ window.${Fr}("${t}",${JSON.stringify(e)}, ${Br})`,xi=({contentId:e,variationId:t})=>`
58
+ window.${wr}("${t}", "${e}", ${Br})`,Ti={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ii={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&!!n.find(o=>o.get("width"))&&(!!n.find(i=>!i.get("width"))||n.reduce((p,f)=>p+f.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ji={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ri={name:"Image",static:!0,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",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(u,p=6e4){return new Promise((f,g)=>{const y=document.createElement("img");let v=!1;y.onload=()=>{v=!0,f(y)},y.addEventListener("error",T=>{console.warn("Image load failed",T.error),g(T.error)}),y.src=u,setTimeout(()=>{v||g(new Error("Image load timed out"))},p)})}function r(u){return Math.round(u*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(u=>u.blob()).then(u=>{u.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(u=>{const p=e.get("aspectRatio");e.get("image")===o&&(!p||p===.7041)&&u.width&&u.height&&(e.set("aspectRatio",r(u.height/u.width)),e.set("height",u.height),e.set("width",u.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Oi={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},$i={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Ni={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},Pi=a.defineComponent({name:"builder-text",props:["text"]}),_i=["innerHTML"];function Ui(e,t,n,r,o,i){var u;return a.openBlock(),a.createElementBlock("div",{class:"builder-text",innerHTML:((u=e.text)==null?void 0:u.toString())||"",style:{outline:"none"}},null,8,_i)}const Dr=$(Pi,[["render",Ui],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]),Mi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},Vi=a.defineComponent({name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","attributes","preload","fit","position","video","posterImage"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.attributes,...this.videoProps}}}}),Li=["preload","src","poster"];function Wi(e,t,n,r,o,i){var u;return a.openBlock(),a.createElementBlock("video",a.mergeProps({preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(u=e.attributes)==null?void 0:u.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage},e.spreadProps),null,16,Li)}const xr=$(Vi,[["render",Wi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]),Hi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Ki=["text/javascript","application/javascript","application/ecmascript"],Gi=e=>Ki.includes(e.type),zi=a.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(Gi(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`Embed`: Error running script:",r)}}}}}),Xi=["innerHTML"];function Ji(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:e.content},null,8,Xi)}const qi=$(zi,[["render",Ji],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]),Yi=a.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:te,filterAttrs:ct}}}),Zi=["alt","src"];function Qi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("img",a.mergeProps({style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},key:e.isEditing()&&e.imgSrc||"default-key",alt:e.altText,src:e.imgSrc||e.image},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,Zi)}const es=$(Yi,[["render",Qi],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]),ts={name:"Raw:Img",hideFromInsertMenu:!0,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",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},ns=a.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`CustomCode`: Error running script:",r)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}}),rs=["innerHTML"];function os(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"elem",class:a.normalizeClass(e._classStringToObject("builder-custom-code"+(e.replaceNodes?" replace-nodes":""))),innerHTML:e.code},null,10,rs)}const is=$(ns,[["render",os],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]),ss={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},tr=()=>[{component:lr,...Ti},{component:br,...Ii},{component:is,...ss},{component:qi,...Hi},{component:kr,...ji},{component:Er,...Ri},{component:es,...ts},{component:Sr,...Oi},{component:Xr,...$i},{component:Dr,...Ni},{component:xr,...Mi}],nr=[],Tr=e=>({type:"builder.registerComponent",data:Kt(e)}),us=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},as=e=>typeof e=="function"?us(e):Xe(e),Kt=({inputs:e,...t})=>({...Xe(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:as(i)}),{}))}),ls=e=>{var i,u;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=(u=e.fileUrl)!=null?u:(i=e==null?void 0:e.files)==null?void 0:i.regular;let o="";if(r&&t&&n&&(o+=`
59
59
  @font-face {
60
60
  font-family: "${t}";
61
61
  src: local("${n}"), url('${r}') format('woff2');
62
62
  font-display: fallback;
63
63
  font-weight: 400;
64
64
  }
65
- `.trim()),e.files)for(const d in e.files){if(!(String(Number(d))===d))continue;const g=e.files[d];g&&g!==r&&(o+=`
65
+ `.trim()),e.files)for(const p in e.files){if(!(String(Number(p))===p))continue;const g=e.files[p];g&&g!==r&&(o+=`
66
66
  @font-face {
67
67
  font-family: "${t}";
68
68
  src: url('${g}') format('woff2');
69
69
  font-display: fallback;
70
- font-weight: ${d};
70
+ font-weight: ${p};
71
71
  }
72
- `.trim())}return o},cs=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>ls(n)))==null?void 0:t.join(" "))||""},ps=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",ds=a.defineComponent({name:"content-styles",components:{InlinedStyles:dt},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
72
+ `.trim())}return o},cs=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>ls(n)))==null?void 0:t.join(" "))||""},ps=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",ds=a.defineComponent({name:"content-styles",components:{InlinedStyles:ht},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
73
73
  ${ps({cssCode:this.cssCode,contentId:this.contentId})}
74
74
  ${cs({customFonts:this.customFonts})}
75
75
 
@@ -85,5 +85,5 @@ ${cs({customFonts:this.customFonts})}
85
85
  text-align: inherit;
86
86
  font-family: inherit;
87
87
  }
88
- `.trim()}}});function hs(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles");return a.openBlock(),a.createBlock(u,{styles:e.injectedStyles},null,8,["styles"])}const fs=$(ds,[["render",hs],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]),ms=({content:e,data:t,locale:n})=>{var i,u,d;const r={};(u=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||u.forEach(f=>{var g;f.name&&f.defaultValue!==void 0&&((g=e==null?void 0:e.data)==null?void 0:g.state)&&e.data.state[f.name]===void 0&&(r[f.name]=f.defaultValue)});const o={...(d=e==null?void 0:e.data)==null?void 0:d.state,...t,...n?{locale:n}:{}};return{...r,...o}},gs=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function ys(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function vs(){const e=ys().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
89
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Ir=vs(),Cs=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},jr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){q.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Rr=async e=>jr(e),As=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ne).join("; "),bs=[["secure",""],["SameSite","None"]],ks=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?bs:[[]],i=n?[["expires",n.toUTCString()]]:[[]],u=[[e,t],...i,["path","/"],["domain",Cs(window.location.hostname)],...o];return As(u)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=ks({name:e,value:t,expires:n});document.cookie=o}catch(o){q.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function Es(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function $r(){return Es().replace(/-/g,"")}const Nr="builderSessionId",Bs=async({canTrack:e})=>{if(!e)return;const t=await Rr({name:Nr,canTrack:e});if(ne(t))return t;{const n=Ss();return Fs({id:n,canTrack:e}),n}},Ss=()=>$r(),Fs=({id:e,canTrack:t})=>Or({name:Nr,value:e,canTrack:t}),Pr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ws=({key:e,canTrack:t})=>{var n;try{return t?(n=Pr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ds=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Pr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},_r="builderVisitorId",xs=({canTrack:e})=>{if(!e)return;const t=ws({key:_r,canTrack:e});if(ne(t))return t;{const n=Ts();return Is({id:n,canTrack:e}),n}},Ts=()=>$r(),Is=({id:e,canTrack:t})=>Ds({key:_r,value:e,canTrack:t}),js=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Bs({canTrack:e}),n=xs({canTrack:e});return{sessionId:t,visitorId:n}},Rs=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await js({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Kt(e){if(!e.apiKey){q.error("Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!te()&&!!(K()||re==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Rs(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Os=e=>Kt({...e,canTrack:!0}),$s="0.6.1-0",rr={};function Ur(e,t){let n=rr[e];if(n||(n=rr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ns=()=>{Ur("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let or=!1;const Ps=(e={})=>{var t,n;or||(or=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:re,version:$s,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:r})=>{var o,i;if(!!(r!=null&&r.type))switch(r.type){case"builder.evaluate":{const u=r.data.text,d=r.data.arguments||[],f=r.data.id,g=new Function(u);let y,A=null;try{y=g.apply(null,d)}catch(T){A=T}A?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:f,error:A.message}},"*"):y&&typeof y.then=="function"?y.then(T=>{var I;(I=window.parent)==null||I.postMessage({type:"builder.evaluateResult",data:{id:f,result:T}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:y,id:f}},"*");break}}})))};function ir(e){return Math.round(e*1e3)/1e3}const _s=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},Us=e=>_s(e,t=>{const n=t.getAttribute("builder-id")||t.id;return Boolean((n==null?void 0:n.indexOf("builder-"))===0)}),sr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=ir(r/n.width),u=ir(o/n.height);return{x:i,y:u}},Ms=e=>{const t=e.target,n=t&&Us(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?sr({event:e,target:t}):void 0,builderTargetOffset:n?sr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Vs="builder.tests",ln=e=>`${Vs}.${e}`,Ls=({contentId:e})=>Rr({name:ln(e),canTrack:!0}),Ws=({contentId:e})=>jr({name:ln(e),canTrack:!0}),Hs=({contentId:e,value:t})=>Or({name:ln(e),value:t,canTrack:!0}),Mr=e=>ne(e.id)&&ne(e.variations)&&Object.keys(e.variations).length>0,Ks=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const u=(o=t[i])==null?void 0:o.testRatio;if(n+=u,r<n)return i}return e},Vr=e=>{const t=Ks(e);return Hs({contentId:e.id,value:t}).catch(n=>{q.error("could not store A/B test variation: ",n)}),t},Lr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Gs=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Mr(e))return e;const n=Ws({contentId:e.id})||Vr({variations:e.variations,id:e.id}),r=Lr({item:e,testGroupId:n});return{...e,...r}},zs=async({item:e,canTrack:t})=>{if(!t||!Mr(e))return e;const r=await Ls({contentId:e.id})||Vr({variations:e.variations,id:e.id}),o=Lr({item:e,testGroupId:r});return{...e,...o}},Gt=e=>ne(e)?e:!0;function zt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],u=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...zt(i,u,n)}:{...r,[u]:i}},{})}const ur="builder.",Xs="options.",Js=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},cn=e=>{if(!e)return{};const t=Wr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ur)){const o=r.replace(ur,"").replace(Xs,"");n[o]=t[r]}}),n},qs=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return cn(e)},Wr=e=>e instanceof URLSearchParams?Js(e):e,Ys="v3",pn=e=>{const{limit:t=30,userAttributes:n,query:r,noTraverse:o=!1,model:i,apiKey:u,includeRefs:d=!0,enrich:f,locale:g,apiVersion:y=Ys}=e;if(!u)throw new Error("Missing API key");if(!["v2","v3"].includes(y))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${y}'`);const A=new URL(`https://cdn.builder.io/api/${y}/content/${i}?apiKey=${u}&limit=${t}&noTraverse=${o}&includeRefs=${d}${g?`&locale=${g}`:""}${f?`&enrich=${f}`:""}`),T={...qs(),...Wr(e.options||{})},I=zt(T);for(const D in I)A.searchParams.set(D,String(I[D]));if(n&&A.searchParams.set("userAttributes",JSON.stringify(n)),r){const D=zt({query:r});for(const R in D)A.searchParams.set(R,JSON.stringify(D[R]))}return A},Zs=e=>"results"in e;async function Ye(e){const t=await dn({...e,limit:1});return t&&t.results[0]||null}const Qs=Ye,eu=async e=>{const t=pn(e);return await(await Ir(t.href)).json()},Hr=async(e,t,n=pn(e))=>{const r=Gt(e.canTrack);if(n.search.includes("preview="),!r||!(K()||re==="reactNative"))return t;try{const o=[];for(const i of t.results)o.push(await zs({item:i,canTrack:r}));t.results=o}catch(o){q.error("Could not process A/B tests. ",o)}return t};async function dn(e){try{const t=pn(e),n=await eu(e);return Zs(n)?Hr(e,n):(q.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return q.error("Error fetching data. ",t),null}}const tu=dn;function Kr(){return!K()||te()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const nu=a.defineComponent({name:"enable-editor",props:["canTrack","builderContextSignal","model","context","apiKey","showContent","classNameProp","content","locale","includeRefs","enrich"],data(){return{canTrackToUse:ne(this.canTrack)?this.canTrack:!0,forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:at}},provide(){const e=this;return{[at.key]:e.builderContextSignal}},mounted(){var e,t;if(this.apiKey||q.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),K()){if(te()&&(this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),Ns(),Ps({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(n=>{var o;const r=Tr(n);(o=window.parent)==null||o.postMessage(r,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.builderContextSignal.content){const n=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,r=(t=this.builderContextSignal.content)==null?void 0:t.id;Kt({type:"impression",canTrack:this.canTrackToUse,contentId:r,apiKey:this.apiKey,variationId:n!==r?n:void 0})}if(Kr()){const n=new URL(location.href).searchParams,r=n.get("builder.preview"),o=n.get(`builder.preview.${r}`),i=n.get("apiKey")||n.get("builder.space");r===this.model&&i===this.apiKey&&(!this.content||o===this.content.id)&&Ye({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(u=>{u&&this.mergeNewContent(u)})}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){K()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(e){var n,r,o,i,u;const t={...this.builderContextSignal.content,...e,data:{...(n=this.builderContextSignal.content)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(r=this.builderContextSignal.content)==null?void 0:r.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((u=(i=this.builderContextSignal.content)==null?void 0:i.meta)==null?void 0:u.breakpoints)}};this.builderContextSignal.content=t},processMessage(e){var n;const{data:t}=e;if(t)switch(t.type){case"builder.configureSdk":{const r=t.data,{breakpoints:o,contentId:i}=r;if(!i||i!==((n=this.builderContextSignal.content)==null?void 0:n.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const r=t.data,o=r.key||r.alias||r.entry||r.modelName,i=r.data;o===this.model&&(this.mergeNewContent(i),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var t,n;const e=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.jsCode;e&&ze({code:e,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(e){var t,n;if(this.builderContextSignal.content){const r=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,o=(n=this.builderContextSignal.content)==null?void 0:n.id;Kt({type:"click",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:r!==o?r:void 0,...Ms(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(e){return e.replace(/{{([^}]+)}}/g,(t,n)=>ze({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:e,key:t}){Ir(e).then(n=>n.json()).then(n=>{var o,i;const r={...this.builderContextSignal.rootState,[t]:n};(i=(o=this.builderContextSignal).rootSetState)==null||i.call(o,r),this.httpReqsData[t]=!0}).catch(n=>{console.error("error fetching dynamic data",e,n)})},runHttpRequests(){var t,n,r;const e=(r=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.httpRequests)!=null?r:{};Object.entries(e).forEach(([o,i])=>{if(i&&(!this.httpReqsData[o]||te())){const u=this.evalExpression(i);this.handleRequest({url:u,key:o})}})},emitStateUpdate(){te()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:Xe(this.builderContextSignal.rootState),ref:{name:this.model}}}))},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}}),ru=["builder-content-id","builder-model"];function ou(e,t,n,r,o,i){var u;return e.builderContextSignal.content?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:e.forceReRenderCount,ref:"elementRef",onClick:t[0]||(t[0]=d=>e.onClick(d)),"builder-content-id":(u=e.builderContextSignal.content)==null?void 0:u.id,"builder-model":e.model,class:e._classStringToObject(e.classNameProp)},{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}}),[a.renderSlot(e.$slots,"default")],16,ru)):a.createCommentVNode("v-if",!0)}const iu=$(nu,[["render",ou],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]),su=a.defineComponent({render(){return a.h("script",{id:this.id,innerHTML:this.scriptStr})},name:"inlined-script",props:["scriptStr","id"]}),Gr=$(su,[["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]),zr=a.markRaw,uu=a.defineComponent({name:"content-component",components:{EnableEditor:iu,InlinedScript:Gr,ContentStyles:fs,Blocks:ht},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:xi({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...tr(),...nr,...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:{component:zr(r),...Ht(o)}}),{}),builderContextSignal:{content:gs({content:this.content,data:this.data}),localState:void 0,rootState:ms({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...tr(),...nr,...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:Ht(o)}),{}),inheritedStyles:{}},TARGET:re}},provide(){const e=this;return{[Ar.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});function au(e,t,n,r,o,i){const u=a.resolveComponent("inlined-script"),d=a.resolveComponent("content-styles"),f=a.resolveComponent("blocks"),g=a.resolveComponent("enable-editor");return a.openBlock(),a.createBlock(g,a.mergeProps({content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:e.builderContextSignal},{}),{default:a.withCtx(()=>{var y,A,T,I,D,R,V;return[e.isSsrAbTest?(a.openBlock(),a.createBlock(u,{key:0,scriptStr:e.scriptStr},null,8,["scriptStr"])):a.createCommentVNode("v-if",!0),e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(d,{key:1,contentId:(y=e.builderContextSignal.content)==null?void 0:y.id,cssCode:(T=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:T.cssCode,customFonts:(D=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:D.customFonts},null,8,["contentId","cssCode","customFonts"])):a.createCommentVNode("v-if",!0),a.createVNode(f,{blocks:(V=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:V.blocks,context:e.builderContextSignal,registeredComponents:e.registeredComponents},null,8,["blocks","context","registeredComponents"])]}),_:1},16,["content","model","context","apiKey","canTrack","locale","includeRefs","enrich","classNameProp","showContent","builderContextSignal"])}const lu=$(uu,[["render",au],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]),cu=a.defineComponent({name:"content-variants",components:{InlinedScript:Gr,InlinedStyles:dt,ContentComponent:lu},props:["canTrack","content","__isNestedRender","model","data","context","apiKey","apiVersion","customComponents","locale","includeRefs","enrich"],data(){return{shouldRenderVariants:Ei({canTrack:Gt(this.canTrack),content:this.content}),getScriptString:wi,getVariants:ut,TARGET:re}},mounted(){this.shouldRenderVariants=!1},computed:{variantScriptStr(){var e;return Di(ut(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return ut(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:Gs({item:this.content,canTrack:Gt(this.canTrack)})}}});function pu(e,t,n,r,o,i){var g,y;const u=a.resolveComponent("inlined-script"),d=a.resolveComponent("inlined-styles"),f=a.resolveComponent("content-component");return a.openBlock(),a.createElementBlock(a.Fragment,null,[!e.__isNestedRender&&e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:0,scriptStr:e.getScriptString()},null,8,["scriptStr"])):a.createCommentVNode("v-if",!0),e.shouldRenderVariants?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(d,{id:`variants-styles-${(g=e.content)==null?void 0:g.id}`,styles:e.hideVariantsStyleString},null,8,["id","styles"]),a.createVNode(u,{scriptStr:e.variantScriptStr},null,8,["scriptStr"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getVariants(e.content),(A,T)=>(a.openBlock(),a.createBlock(f,{key:A.testVariationId,content:A,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants},null,8,["content","model","data","context","apiKey","apiVersion","customComponents","canTrack","locale","includeRefs","enrich","isSsrAbTest"]))),128))],64)):a.createCommentVNode("v-if",!0),a.createVNode(f,a.mergeProps({content:e.defaultContent,classNameProp:`variant-${(y=e.content)==null?void 0:y.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants},{key:e.shouldRenderVariants.toString()}),null,16,["content","classNameProp","model","data","context","apiKey","apiVersion","customComponents","canTrack","locale","includeRefs","enrich","isSsrAbTest"])],64)}const hn=$(cu,[["render",pu],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]),du=async({builderContextValue:e,symbol:t})=>{if((t==null?void 0:t.model)&&(e==null?void 0:e.apiKey))return Ye({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{q.error("Could not fetch symbol content: ",n)})},hu=a.defineComponent({name:"builder-symbol",components:{ContentVariants:hn},props:["js","attributes","symbol","dynamic","builderContext","builderComponents"],data(){var e;return{contentToUse:(e=this.symbol)==null?void 0:e.content,filterAttrs:lt}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{className(){var e,t;return[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,((t=this.symbol)==null?void 0:t.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){this.contentToUse||du({symbol:this.symbol,builderContextValue:this.builderContext}).then(e=>{e&&(this.contentToUse=e)})},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});function fu(e,t,n,r,o,i){var d,f,g,y;const u=a.resolveComponent("content-variants");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(e.className)},{...e.filterAttrs(e.attributes,"v-on:",!1)},a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.createVNode(u,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(d=e.symbol)==null?void 0:d.data,...e.builderContext.localState,...(g=(f=e.contentToUse)==null?void 0:f.data)==null?void 0:g.state},model:(y=e.symbol)==null?void 0:y.model,content:e.contentToUse},null,8,["apiVersion","apiKey","context","customComponents","data","model","content"])],16)}const Xr=$(hu,[["render",fu],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]),mu=ht,gu=hn,ar={};function yu(e){if(K()){Object.assign(ar,e);const t={type:"builder.settingsChange",data:ar};parent.postMessage(t,"*")}}const vu=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:cn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await Ye(n)}};exports.Block=an;exports.BlockStyles=un;exports.Blocks=ht;exports.BuilderContext=at;exports.Button=lr;exports.Columns=br;exports.Content=hn;exports.Fragment=kr;exports.Image=Er;exports.RenderBlocks=mu;exports.RenderContent=gu;exports.Section=Br;exports.Symbol=Xr;exports.TARGET=re;exports.Text=Dr;exports.Video=xr;exports._export_sfc=$;exports._processContentResult=Hr;exports.block=ti;exports.convertStyleMapToCSSArray=Cr;exports.createRegisterComponentMessage=Tr;exports.evaluate=ze;exports.fetchBuilderProps=vu;exports.fetchEntries=dn;exports.fetchOneEntry=Ye;exports.getAllContent=tu;exports.getBuilderSearchParams=cn;exports.getContent=Qs;exports.isEditing=te;exports.isPreviewing=Kr;exports.register=Ur;exports.setEditorSettings=yu;exports.track=Os;exports.wrapComponentRef=zr;
88
+ `.trim()}}});function hs(e,t,n,r,o,i){const u=a.resolveComponent("inlined-styles");return a.openBlock(),a.createBlock(u,{styles:e.injectedStyles},null,8,["styles"])}const fs=$(ds,[["render",hs],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]),ms=({content:e,data:t,locale:n})=>{var i,u,p;const r={};(u=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||u.forEach(f=>{var g;f.name&&f.defaultValue!==void 0&&((g=e==null?void 0:e.data)==null?void 0:g.state)&&e.data.state[f.name]===void 0&&(r[f.name]=f.defaultValue)});const o={...(p=e==null?void 0:e.data)==null?void 0:p.state,...t,...n?{locale:n}:{}};return{...r,...o}},gs=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function ys(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function vs(){const e=ys().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
89
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Ir=vs(),Cs=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},jr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){q.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Rr=async e=>jr(e),As=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ne).join("; "),bs=[["secure",""],["SameSite","None"]],ks=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?bs:[[]],i=n?[["expires",n.toUTCString()]]:[[]],u=[[e,t],...i,["path","/"],["domain",Cs(window.location.hostname)],...o];return As(u)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=ks({name:e,value:t,expires:n});document.cookie=o}catch(o){q.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function Es(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function $r(){return Es().replace(/-/g,"")}const Nr="builderSessionId",Ss=async({canTrack:e})=>{if(!e)return;const t=await Rr({name:Nr,canTrack:e});if(ne(t))return t;{const n=Bs();return Fs({id:n,canTrack:e}),n}},Bs=()=>$r(),Fs=({id:e,canTrack:t})=>Or({name:Nr,value:e,canTrack:t}),Pr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ws=({key:e,canTrack:t})=>{var n;try{return t?(n=Pr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ds=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Pr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},_r="builderVisitorId",xs=({canTrack:e})=>{if(!e)return;const t=ws({key:_r,canTrack:e});if(ne(t))return t;{const n=Ts();return Is({id:n,canTrack:e}),n}},Ts=()=>$r(),Is=({id:e,canTrack:t})=>Ds({key:_r,value:e,canTrack:t}),js=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Ss({canTrack:e}),n=xs({canTrack:e});return{sessionId:t,visitorId:n}},Rs=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await js({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Gt(e){if(!e.apiKey){q.error("Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!te()&&!!(K()||re==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Rs(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Os=e=>Gt({...e,canTrack:!0}),$s="0.6.4",rr={};function Ur(e,t){let n=rr[e];if(n||(n=rr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ns=()=>{Ur("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let or=!1;const Ps=(e={})=>{var t,n;or||(or=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:re,version:$s,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:r})=>{var o,i;if(!!(r!=null&&r.type))switch(r.type){case"builder.evaluate":{const u=r.data.text,p=r.data.arguments||[],f=r.data.id,g=new Function(u);let y,v=null;try{y=g.apply(null,p)}catch(T){v=T}v?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:f,error:v.message}},"*"):y&&typeof y.then=="function"?y.then(T=>{var I;(I=window.parent)==null||I.postMessage({type:"builder.evaluateResult",data:{id:f,result:T}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:y,id:f}},"*");break}}})))};function ir(e){return Math.round(e*1e3)/1e3}const _s=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},Us=e=>_s(e,t=>{const n=t.getAttribute("builder-id")||t.id;return Boolean((n==null?void 0:n.indexOf("builder-"))===0)}),sr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=ir(r/n.width),u=ir(o/n.height);return{x:i,y:u}},Ms=e=>{const t=e.target,n=t&&Us(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?sr({event:e,target:t}):void 0,builderTargetOffset:n?sr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Vs="builder.tests",ln=e=>`${Vs}.${e}`,Ls=({contentId:e})=>Rr({name:ln(e),canTrack:!0}),Ws=({contentId:e})=>jr({name:ln(e),canTrack:!0}),Hs=({contentId:e,value:t})=>Or({name:ln(e),value:t,canTrack:!0}),Mr=e=>ne(e.id)&&ne(e.variations)&&Object.keys(e.variations).length>0,Ks=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const u=(o=t[i])==null?void 0:o.testRatio;if(n+=u,r<n)return i}return e},Vr=e=>{const t=Ks(e);return Hs({contentId:e.id,value:t}).catch(n=>{q.error("could not store A/B test variation: ",n)}),t},Lr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Gs=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Mr(e))return e;const n=Ws({contentId:e.id})||Vr({variations:e.variations,id:e.id}),r=Lr({item:e,testGroupId:n});return{...e,...r}},zs=async({item:e,canTrack:t})=>{if(!t||!Mr(e))return e;const r=await Ls({contentId:e.id})||Vr({variations:e.variations,id:e.id}),o=Lr({item:e,testGroupId:r});return{...e,...o}},zt=e=>ne(e)?e:!0;function Xt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],u=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...Xt(i,u,n)}:{...r,[u]:i}},{})}const ur="builder.",Xs="options.",Js=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},cn=e=>{if(!e)return{};const t=Wr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ur)){const o=r.replace(ur,"").replace(Xs,"");n[o]=t[r]}}),n},qs=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return cn(e)},Wr=e=>e instanceof URLSearchParams?Js(e):e,Ys="v3",pn=e=>{const{limit:t=30,userAttributes:n,query:r,noTraverse:o=!1,model:i,apiKey:u,includeRefs:p=!0,enrich:f,locale:g,apiVersion:y=Ys}=e;if(!u)throw new Error("Missing API key");if(!["v2","v3"].includes(y))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${y}'`);const v=new URL(`https://cdn.builder.io/api/${y}/content/${i}?apiKey=${u}&limit=${t}&noTraverse=${o}&includeRefs=${p}${g?`&locale=${g}`:""}${f?`&enrich=${f}`:""}`),T={...qs(),...Wr(e.options||{})},I=Xt(T);for(const D in I)v.searchParams.set(D,String(I[D]));if(n&&v.searchParams.set("userAttributes",JSON.stringify(n)),r){const D=Xt({query:r});for(const R in D)v.searchParams.set(R,JSON.stringify(D[R]))}return v},Zs=e=>"results"in e;async function Ye(e){const t=await dn({...e,limit:1});return t&&t.results[0]||null}const Qs=Ye,eu=async e=>{const t=pn(e);return await(await Ir(t.href)).json()},Hr=async(e,t,n=pn(e))=>{const r=zt(e.canTrack);if(n.search.includes("preview="),!r||!(K()||re==="reactNative"))return t;try{const o=[];for(const i of t.results)o.push(await zs({item:i,canTrack:r}));t.results=o}catch(o){q.error("Could not process A/B tests. ",o)}return t};async function dn(e){try{const t=pn(e),n=await eu(e);return Zs(n)?Hr(e,n):(q.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return q.error("Error fetching data. ",t),null}}const tu=dn;function Kr(){return!K()||te()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const nu=a.defineComponent({name:"enable-editor",props:["canTrack","builderContextSignal","model","context","apiKey","showContent","classNameProp","content","locale","includeRefs","enrich"],data(){return{canTrackToUse:ne(this.canTrack)?this.canTrack:!0,forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:lt}},provide(){const e=this;return{[lt.key]:e.builderContextSignal}},mounted(){var e,t;if(this.apiKey||q.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),K()){if(te()&&(this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),Ns(),Ps({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(n=>{var o;const r=Tr(n);(o=window.parent)==null||o.postMessage(r,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.builderContextSignal.content){const n=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,r=(t=this.builderContextSignal.content)==null?void 0:t.id;Gt({type:"impression",canTrack:this.canTrackToUse,contentId:r,apiKey:this.apiKey,variationId:n!==r?n:void 0})}if(Kr()){const n=new URL(location.href).searchParams,r=n.get("builder.preview"),o=n.get(`builder.preview.${r}`),i=n.get("apiKey")||n.get("builder.space");r===this.model&&i===this.apiKey&&(!this.content||o===this.content.id)&&Ye({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(u=>{u&&this.mergeNewContent(u)})}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){K()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(e){var n,r,o,i,u;const t={...this.builderContextSignal.content,...e,data:{...(n=this.builderContextSignal.content)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(r=this.builderContextSignal.content)==null?void 0:r.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((u=(i=this.builderContextSignal.content)==null?void 0:i.meta)==null?void 0:u.breakpoints)}};this.builderContextSignal.content=t},processMessage(e){var n;const{data:t}=e;if(t)switch(t.type){case"builder.configureSdk":{const r=t.data,{breakpoints:o,contentId:i}=r;if(!i||i!==((n=this.builderContextSignal.content)==null?void 0:n.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const r=t.data,o=r.key||r.alias||r.entry||r.modelName,i=r.data;o===this.model&&(this.mergeNewContent(i),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var t,n;const e=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.jsCode;e&&ze({code:e,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(e){var t,n;if(this.builderContextSignal.content){const r=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,o=(n=this.builderContextSignal.content)==null?void 0:n.id;Gt({type:"click",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:r!==o?r:void 0,...Ms(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(e){return e.replace(/{{([^}]+)}}/g,(t,n)=>ze({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:e,key:t}){Ir(e).then(n=>n.json()).then(n=>{var o,i;const r={...this.builderContextSignal.rootState,[t]:n};(i=(o=this.builderContextSignal).rootSetState)==null||i.call(o,r),this.httpReqsData[t]=!0}).catch(n=>{console.error("error fetching dynamic data",e,n)})},runHttpRequests(){var t,n,r;const e=(r=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.httpRequests)!=null?r:{};Object.entries(e).forEach(([o,i])=>{if(i&&(!this.httpReqsData[o]||te())){const u=this.evalExpression(i);this.handleRequest({url:u,key:o})}})},emitStateUpdate(){te()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:Xe(this.builderContextSignal.rootState),ref:{name:this.model}}}))},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}}),ru=["builder-content-id","builder-model"];function ou(e,t,n,r,o,i){var u;return e.builderContextSignal.content?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:e.forceReRenderCount,ref:"elementRef",onClick:t[0]||(t[0]=p=>e.onClick(p)),"builder-content-id":(u=e.builderContextSignal.content)==null?void 0:u.id,"builder-model":e.model,class:e._classStringToObject(e.classNameProp)},{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}}),[a.renderSlot(e.$slots,"default")],16,ru)):a.createCommentVNode("v-if",!0)}const iu=$(nu,[["render",ou],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]),su=a.defineComponent({render(){return a.h("script",{id:this.id,innerHTML:this.scriptStr})},name:"inlined-script",props:["scriptStr","id"]}),Gr=$(su,[["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]),zr=a.markRaw,uu=a.defineComponent({name:"content-component",components:{EnableEditor:iu,InlinedScript:Gr,ContentStyles:fs,Blocks:ft},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:xi({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...tr(),...nr,...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:{component:zr(r),...Kt(o)}}),{}),builderContextSignal:{content:gs({content:this.content,data:this.data}),localState:void 0,rootState:ms({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...tr(),...nr,...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:Kt(o)}),{}),inheritedStyles:{}},TARGET:re}},provide(){const e=this;return{[Ar.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});function au(e,t,n,r,o,i){const u=a.resolveComponent("inlined-script"),p=a.resolveComponent("content-styles"),f=a.resolveComponent("blocks"),g=a.resolveComponent("enable-editor");return a.openBlock(),a.createBlock(g,a.mergeProps({content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:e.builderContextSignal},{}),{default:a.withCtx(()=>{var y,v,T,I,D,R,V;return[e.isSsrAbTest?(a.openBlock(),a.createBlock(u,{key:0,scriptStr:e.scriptStr},null,8,["scriptStr"])):a.createCommentVNode("v-if",!0),e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(p,{key:1,contentId:(y=e.builderContextSignal.content)==null?void 0:y.id,cssCode:(T=(v=e.builderContextSignal.content)==null?void 0:v.data)==null?void 0:T.cssCode,customFonts:(D=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:D.customFonts},null,8,["contentId","cssCode","customFonts"])):a.createCommentVNode("v-if",!0),a.createVNode(f,{blocks:(V=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:V.blocks,context:e.builderContextSignal,registeredComponents:e.registeredComponents},null,8,["blocks","context","registeredComponents"])]}),_:1},16,["content","model","context","apiKey","canTrack","locale","includeRefs","enrich","classNameProp","showContent","builderContextSignal"])}const lu=$(uu,[["render",au],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]),cu=a.defineComponent({name:"content-variants",components:{InlinedScript:Gr,InlinedStyles:ht,ContentComponent:lu},props:["canTrack","content","__isNestedRender","model","data","context","apiKey","apiVersion","customComponents","locale","includeRefs","enrich"],data(){return{shouldRenderVariants:Ei({canTrack:zt(this.canTrack),content:this.content}),getScriptString:wi,getVariants:ut,TARGET:re}},mounted(){this.shouldRenderVariants=!1},computed:{variantScriptStr(){var e;return Di(ut(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return ut(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:Gs({item:this.content,canTrack:zt(this.canTrack)})}}});function pu(e,t,n,r,o,i){var g,y;const u=a.resolveComponent("inlined-script"),p=a.resolveComponent("inlined-styles"),f=a.resolveComponent("content-component");return a.openBlock(),a.createElementBlock(a.Fragment,null,[!e.__isNestedRender&&e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:0,scriptStr:e.getScriptString()},null,8,["scriptStr"])):a.createCommentVNode("v-if",!0),e.shouldRenderVariants?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(p,{id:`variants-styles-${(g=e.content)==null?void 0:g.id}`,styles:e.hideVariantsStyleString},null,8,["id","styles"]),a.createVNode(u,{scriptStr:e.variantScriptStr},null,8,["scriptStr"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getVariants(e.content),(v,T)=>(a.openBlock(),a.createBlock(f,{key:v.testVariationId,content:v,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants},null,8,["content","model","data","context","apiKey","apiVersion","customComponents","canTrack","locale","includeRefs","enrich","isSsrAbTest"]))),128))],64)):a.createCommentVNode("v-if",!0),a.createVNode(f,a.mergeProps({content:e.defaultContent,classNameProp:`variant-${(y=e.content)==null?void 0:y.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants},{key:e.shouldRenderVariants.toString()}),null,16,["content","classNameProp","model","data","context","apiKey","apiVersion","customComponents","canTrack","locale","includeRefs","enrich","isSsrAbTest"])],64)}const hn=$(cu,[["render",pu],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]),du=async({builderContextValue:e,symbol:t})=>{if((t==null?void 0:t.model)&&(e==null?void 0:e.apiKey))return Ye({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{q.error("Could not fetch symbol content: ",n)})},hu=a.defineComponent({name:"builder-symbol",components:{ContentVariants:hn},props:["js","attributes","symbol","dynamic","builderContext","builderComponents"],data(){var e;return{contentToUse:(e=this.symbol)==null?void 0:e.content,filterAttrs:ct}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{className(){var e,t;return[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,((t=this.symbol)==null?void 0:t.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){this.contentToUse||du({symbol:this.symbol,builderContextValue:this.builderContext}).then(e=>{e&&(this.contentToUse=e)})},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});function fu(e,t,n,r,o,i){var p,f,g,y;const u=a.resolveComponent("content-variants");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e._classStringToObject(e.className)},{...e.filterAttrs(e.attributes,"v-on:",!1)},a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.createVNode(u,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(p=e.symbol)==null?void 0:p.data,...e.builderContext.localState,...(g=(f=e.contentToUse)==null?void 0:f.data)==null?void 0:g.state},model:(y=e.symbol)==null?void 0:y.model,content:e.contentToUse},null,8,["apiVersion","apiKey","context","customComponents","data","model","content"])],16)}const Xr=$(hu,[["render",fu],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]),mu=ft,gu=hn,ar={};function yu(e){if(K()){Object.assign(ar,e);const t={type:"builder.settingsChange",data:ar};parent.postMessage(t,"*")}}const vu=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:cn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await Ye(n)}};exports.Block=an;exports.BlockStyles=un;exports.Blocks=ft;exports.BuilderContext=lt;exports.Button=lr;exports.Columns=br;exports.Content=hn;exports.Fragment=kr;exports.Image=Er;exports.RenderBlocks=mu;exports.RenderContent=gu;exports.Section=Sr;exports.Symbol=Xr;exports.TARGET=re;exports.Text=Dr;exports.Video=xr;exports._export_sfc=$;exports._processContentResult=Hr;exports.block=ti;exports.convertStyleMapToCSSArray=Cr;exports.createRegisterComponentMessage=Tr;exports.evaluate=ze;exports.fetchBuilderProps=vu;exports.fetchEntries=dn;exports.fetchOneEntry=Ye;exports.getAllContent=tu;exports.getBuilderSearchParams=cn;exports.getContent=Qs;exports.isEditing=te;exports.isPreviewing=Kr;exports.register=Ur;exports.setEditorSettings=yu;exports.track=Os;exports.wrapComponentRef=zr;