@builder.io/sdk-vue 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/package.json +1 -1
- package/vue2/lib/browser/{block-9d4161fb.cjs → block-8eb8a717.cjs} +2 -2
- package/vue2/lib/{edge/block-c6f466c0.js → browser/block-f46a2e5f.js} +7 -7
- package/vue2/lib/{node/block-styles-b947dfc5.js → browser/block-styles-5d933df0.js} +5 -5
- package/vue2/lib/{node/block-styles-c4974a44.cjs → browser/block-styles-c36b606c.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-0d4fe902.js → block-wrapper-9032b3aa.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-3157e1bc.cjs → block-wrapper-e68eb3ce.cjs} +1 -1
- package/vue2/lib/browser/blocks-wrapper-13a20963.js +74 -0
- package/vue2/lib/browser/blocks-wrapper-233d7a58.cjs +1 -0
- package/vue2/lib/{node/component-ref-7f93a1f0.cjs → browser/component-ref-3eabf9d3.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-b3b70fa9.js → browser/component-ref-aff72404.js} +6 -6
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/browser/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-0575efdf.cjs → content-01c5295f.cjs} +1 -1
- package/vue2/lib/{edge/content-90700d7e.js → browser/content-5ff1bf50.js} +29 -23
- package/vue2/lib/browser/context/builder.context.d.ts +2 -0
- package/vue2/lib/browser/context/types.d.ts +2 -1
- package/vue2/lib/{node/css-97122c97.js → browser/css-0e1a5906.js} +1 -1
- package/vue2/lib/browser/{css-9cb1ef7e.cjs → css-8f0dfb3a.cjs} +1 -1
- package/vue2/lib/browser/enable-editor-79943def.cjs +1 -0
- package/vue2/lib/browser/{enable-editor-c377a256.js → enable-editor-ba199201.js} +25 -27
- package/vue2/lib/browser/{evaluate-2857c518.js → evaluate-c7aac0ee.js} +1 -1
- package/vue2/lib/browser/{evaluate-5a5f1e1a.cjs → evaluate-ec382d17.cjs} +1 -1
- package/vue2/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/browser/{get-block-actions-797d49a2.cjs → get-block-actions-34f93bab.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-a4c6a740.js → browser/get-block-actions-80d8a41d.js} +2 -2
- package/vue2/lib/browser/{get-block-properties-eb393578.js → get-block-properties-b80c51fd.js} +10 -4
- package/vue2/lib/browser/get-block-properties-fcbe86d3.cjs +1 -0
- package/vue2/lib/browser/{get-processed-block-d2849656.js → get-processed-block-08346ffe.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-e9eb76d5.cjs → get-processed-block-bb410f6f.cjs} +1 -1
- package/vue2/lib/{node/index-f82ca488.cjs → browser/index-4d603d94.cjs} +7 -7
- package/vue2/lib/{edge/index-22fb0dfe.js → browser/index-d4551a7a.js} +110 -103
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-f5a56ea4.js → browser/inlined-script-18dd0beb.js} +1 -1
- package/vue2/lib/browser/{inlined-script-166d99c7.cjs → inlined-script-ff6b73ba.cjs} +1 -1
- package/vue2/lib/browser/{inlined-styles-4c4a89e2.cjs → inlined-styles-3c12a021.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-4fa88e65.js → browser/inlined-styles-b687d7f1.js} +1 -1
- package/vue2/lib/{node/interactive-element-f08c324e.cjs → browser/interactive-element-52eda23c.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-f46aae31.js → browser/interactive-element-91f198a4.js} +5 -5
- package/vue2/lib/{node/repeated-block-fe5a6df8.js → browser/repeated-block-6a55f793.js} +2 -2
- package/vue2/lib/{node/repeated-block-5d832619.cjs → browser/repeated-block-956e883f.cjs} +1 -1
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/browser/{styles-3945b4c7.js → styles-36c9fddb.js} +2 -2
- package/vue2/lib/{node/styles-85761eb4.cjs → browser/styles-8dc5678c.cjs} +2 -2
- package/vue2/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/{browser/block-f5679152.js → edge/block-3d9fb7c2.js} +7 -7
- package/vue2/lib/{node/block-f9029bc3.cjs → edge/block-f15be379.cjs} +2 -2
- package/vue2/lib/edge/{block-styles-37805084.js → block-styles-8d163d7c.js} +5 -5
- package/vue2/lib/edge/{block-styles-adc484c6.cjs → block-styles-b8533af9.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-04b443cd.js → edge/block-wrapper-5c00ae5e.js} +5 -5
- package/vue2/lib/{node/block-wrapper-8ba974d4.cjs → edge/block-wrapper-aaa3ed0e.cjs} +1 -1
- package/vue2/lib/edge/blocks-wrapper-61df90f4.js +74 -0
- package/vue2/lib/edge/blocks-wrapper-69c07fcc.cjs +1 -0
- package/vue2/lib/{browser/component-ref-c51b0a20.cjs → edge/component-ref-0f3a0ba1.cjs} +1 -1
- package/vue2/lib/{node/component-ref-5f0d480f.js → edge/component-ref-193f3231.js} +6 -6
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/edge/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{browser/content-84bda2e9.js → edge/content-0e433688.js} +29 -23
- package/vue2/lib/{node/content-a860398a.cjs → edge/content-deb91a9b.cjs} +1 -1
- package/vue2/lib/edge/context/builder.context.d.ts +2 -0
- package/vue2/lib/edge/context/types.d.ts +2 -1
- package/vue2/lib/{browser/css-bdeda4e4.js → edge/css-81e2e40c.js} +1 -1
- package/vue2/lib/{node/css-fb2674c8.cjs → edge/css-a72ded40.cjs} +1 -1
- package/vue2/lib/edge/enable-editor-27dc580b.cjs +1 -0
- package/vue2/lib/{node/enable-editor-df62e3bf.js → edge/enable-editor-cd9aa0aa.js} +25 -27
- package/vue2/lib/edge/{evaluate-4bd2a851.cjs → evaluate-128da0ac.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-2a5e2028.js → evaluate-8d0bbfbd.js} +1 -1
- package/vue2/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/edge/{get-block-actions-84b02e58.cjs → get-block-actions-1b4a42bd.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-035815cd.js → edge/get-block-actions-b804a4ed.js} +2 -2
- package/vue2/lib/{node/get-block-properties-b3de78f4.js → edge/get-block-properties-248979b7.js} +10 -4
- package/vue2/lib/edge/get-block-properties-91cdf9bd.cjs +1 -0
- package/vue2/lib/edge/{get-processed-block-8f70184a.cjs → get-processed-block-08d699f0.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-e16b5f0b.js → edge/get-processed-block-9ad00b6e.js} +2 -2
- package/vue2/lib/{browser/index-1fdc0dd8.js → edge/index-23a8bb60.js} +110 -103
- package/vue2/lib/edge/{index-cf208007.cjs → index-4db92fa7.cjs} +7 -7
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-a6f84120.js → edge/inlined-script-3796a498.js} +1 -1
- package/vue2/lib/edge/{inlined-script-f460fc92.cjs → inlined-script-e880446d.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-ea805c3d.js → inlined-styles-ae4fbc9f.js} +1 -1
- package/vue2/lib/edge/{inlined-styles-c9c77496.cjs → inlined-styles-ae989bfa.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-f3bc9b6c.js → edge/interactive-element-4613d798.js} +5 -5
- package/vue2/lib/edge/{interactive-element-d909635d.cjs → interactive-element-e0de8a75.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-8c6f0ef0.cjs → edge/repeated-block-061a93e5.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-59ab7fe5.js → edge/repeated-block-277f2b40.js} +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-0fbadb80.cjs → edge/styles-290ae837.cjs} +2 -2
- package/vue2/lib/edge/{styles-8840ca47.js → styles-cca4b08e.js} +2 -2
- package/vue2/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/node/{block-6dc57ba5.js → block-88d3d176.js} +7 -7
- package/vue2/lib/{edge/block-03548c5c.cjs → node/block-b586205d.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-b76b4562.cjs → node/block-styles-471fd00b.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-6ca785bb.js → node/block-styles-aba16bf4.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-ff8027da.cjs → node/block-wrapper-c76e2259.cjs} +1 -1
- package/vue2/lib/{edge/block-wrapper-1d75af67.js → node/block-wrapper-d1dab513.js} +5 -5
- package/vue2/lib/node/blocks-wrapper-6dd528c4.js +74 -0
- package/vue2/lib/node/blocks-wrapper-9abf97bd.cjs +1 -0
- package/vue2/lib/{edge/component-ref-fc9c9d6b.cjs → node/component-ref-08e79b50.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-d59047de.js → node/component-ref-3ee361bc.js} +6 -6
- package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/node/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-b604b895.js → content-3d542f91.js} +29 -23
- package/vue2/lib/{edge/content-e5850b95.cjs → node/content-d8091f69.cjs} +1 -1
- package/vue2/lib/node/context/builder.context.d.ts +2 -0
- package/vue2/lib/node/context/types.d.ts +2 -1
- package/vue2/lib/{edge/css-5dcb14df.cjs → node/css-f88973d9.cjs} +1 -1
- package/vue2/lib/{edge/css-99493b5d.js → node/css-fc678131.js} +1 -1
- package/vue2/lib/{edge/enable-editor-81a0ad6d.js → node/enable-editor-7a3fcc5f.js} +25 -27
- package/vue2/lib/node/enable-editor-85e730f9.cjs +1 -0
- package/vue2/lib/node/{evaluate-44daeb3b.cjs → evaluate-10e29303.cjs} +1 -1
- package/vue2/lib/node/{evaluate-b86af327.js → evaluate-e38e24b8.js} +24 -23
- package/vue2/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{browser/get-block-actions-6774e2de.js → node/get-block-actions-8c081856.js} +2 -2
- package/vue2/lib/node/{get-block-actions-0c98c4e4.cjs → get-block-actions-ac6479e1.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-450803e5.js → node/get-block-properties-2a5dbda8.js} +10 -4
- package/vue2/lib/node/get-block-properties-81e3699e.cjs +1 -0
- package/vue2/lib/{edge/get-processed-block-1d7ecd6a.js → node/get-processed-block-ebacd599.js} +2 -2
- package/vue2/lib/node/{get-processed-block-34d0880b.cjs → get-processed-block-ebf5f46b.cjs} +1 -1
- package/vue2/lib/{browser/index-e56cba6d.cjs → node/index-d62c9232.cjs} +7 -7
- package/vue2/lib/node/{index-04eac5bd.js → index-ef12824d.js} +110 -103
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{browser/inlined-script-0fd7eea7.js → node/inlined-script-1cd578e5.js} +1 -1
- package/vue2/lib/node/{inlined-script-3d1617fb.cjs → inlined-script-88b1aa3e.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-73447147.js → node/inlined-styles-1d3927dc.js} +1 -1
- package/vue2/lib/node/{inlined-styles-e70e3d2e.cjs → inlined-styles-91685244.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-772e6a3d.cjs → node/interactive-element-95a3909c.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-340237cb.js → node/interactive-element-97fabd2d.js} +5 -5
- package/vue2/lib/{edge/repeated-block-b32d9254.js → node/repeated-block-1bf29b19.js} +2 -2
- package/vue2/lib/{edge/repeated-block-d2b864a8.cjs → node/repeated-block-ef8d5bc1.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/node/{styles-5a4adee9.js → styles-b6c2eccd.js} +2 -2
- package/vue2/lib/{edge/styles-8f4d5e0d.cjs → node/styles-c3cd7c3e.cjs} +2 -2
- package/vue2/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{edge/block-wrapper.6ce0ef67.js → browser/block-wrapper.15e14a7d.js} +2 -2
- package/vue3/lib/{edge/block-wrapper.6a65a5d4.cjs → browser/block-wrapper.a7f5948e.cjs} +1 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{edge/component-ref.8741a80d.cjs → browser/component-ref.15d8ca5f.cjs} +1 -1
- package/vue3/lib/{edge/component-ref.6603a2a5.js → browser/component-ref.b4fe8508.js} +2 -2
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/browser/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/context/builder.context.d.ts +2 -0
- package/vue3/lib/browser/context/types.d.ts +2 -1
- package/vue3/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/browser/get-block-actions.1284f7f4.cjs +1 -0
- package/vue3/lib/{edge/get-block-actions.a147904d.js → browser/get-block-actions.25085dc6.js} +17 -11
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/browser/{index.dfff88fe.js → index.c84b511e.js} +675 -634
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/{index.8871e74f.cjs → index.e038c54d.cjs} +19 -19
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.3cdac290.js → browser/repeated-block.c501aed0.js} +2 -2
- package/vue3/lib/browser/{repeated-block.fecd4553.cjs → repeated-block.eb1f9edd.cjs} +1 -1
- package/vue3/lib/browser/style.css +1 -1
- package/vue3/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{browser/block-wrapper.352385b7.js → edge/block-wrapper.695c0554.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.5e6d25d7.cjs → edge/block-wrapper.9cca9b7b.cjs} +1 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{browser/component-ref.5c2938c9.cjs → edge/component-ref.50f222f3.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.bf30bc42.js → edge/component-ref.5be0ad03.js} +2 -2
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/edge/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/context/builder.context.d.ts +2 -0
- package/vue3/lib/edge/context/types.d.ts +2 -1
- package/vue3/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/edge/get-block-actions.1d0e09b6.cjs +1 -0
- package/vue3/lib/{browser/get-block-actions.6a86c1e3.js → edge/get-block-actions.f2e5b517.js} +17 -11
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/edge/{index.7bae31e6.js → index.33299292.js} +846 -805
- package/vue3/lib/edge/{index.01b1f45a.cjs → index.99c2904d.cjs} +26 -26
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.16b97544.js → edge/repeated-block.14eebee4.js} +2 -2
- package/vue3/lib/edge/{repeated-block.7f5a9758.cjs → repeated-block.53e299ee.cjs} +1 -1
- package/vue3/lib/edge/style.css +1 -1
- package/vue3/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/node/{block-wrapper.d4a48d58.cjs → block-wrapper.0a0c40cf.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.6198973e.js → block-wrapper.728d47ca.js} +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/{component-ref.d6bc01e4.cjs → component-ref.d5125dbe.cjs} +1 -1
- package/vue3/lib/node/{component-ref.a11780f4.js → component-ref.f9faaca2.js} +2 -2
- package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/node/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/context/builder.context.d.ts +2 -0
- package/vue3/lib/node/context/types.d.ts +2 -1
- package/vue3/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/node/get-block-actions.1079cc08.cjs +1 -0
- package/vue3/lib/node/{get-block-actions.a19931a2.js → get-block-actions.1b3dcb45.js} +17 -11
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/node/{index.67294824.js → index.558533a1.js} +857 -810
- package/vue3/lib/node/index.6720f6e5.cjs +201 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.6106c352.js → repeated-block.38b9803d.js} +2 -2
- package/vue3/lib/node/{repeated-block.ab684d37.cjs → repeated-block.9d836783.cjs} +1 -1
- package/vue3/lib/node/style.css +1 -1
- package/vue3/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/browser/blocks-wrapper-02404286.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-dc71efe8.js +0 -73
- package/vue2/lib/browser/enable-editor-c49316d4.cjs +0 -1
- package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/browser/get-block-properties-b25a78e1.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-e329b941.js +0 -73
- package/vue2/lib/edge/blocks-wrapper-ed7f6801.cjs +0 -1
- package/vue2/lib/edge/enable-editor-31a92cf5.cjs +0 -1
- package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/edge/get-block-properties-a07f7705.cjs +0 -1
- package/vue2/lib/node/blocks-wrapper-2ebcec73.js +0 -73
- package/vue2/lib/node/blocks-wrapper-e32910ce.cjs +0 -1
- package/vue2/lib/node/enable-editor-cdf1803d.cjs +0 -1
- package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/node/get-block-properties-d46ce865.cjs +0 -1
- package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/browser/get-block-actions.f6ff7325.cjs +0 -1
- package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/edge/get-block-actions.a9e5c4f5.cjs +0 -1
- package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/node/get-block-actions.ecd370ea.cjs +0 -1
- package/vue3/lib/node/index.4291aa83.cjs +0 -201
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
function
|
|
2
|
+
import { defineComponent as N, openBlock as b, createElementBlock as x, mergeProps as oe, toHandlers as ot, toDisplayString as rr, defineAsyncComponent as Ct, resolveComponent as V, Fragment as re, createBlock as H, createCommentVNode as P, renderList as xe, withCtx as at, createVNode as Ie, h as br, resolveDynamicComponent as kr, renderSlot as Ee, createElementVNode as rn, normalizeStyle as on, normalizeClass as Er, markRaw as Ao } from "vue";
|
|
3
|
+
function wt(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
6
6
|
if (!e[o] || n && !o.startsWith(t))
|
|
@@ -10,11 +10,11 @@ function Ft(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Co = N({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
17
|
-
return { filterAttrs:
|
|
17
|
+
return { filterAttrs: wt };
|
|
18
18
|
},
|
|
19
19
|
methods: {
|
|
20
20
|
_classStringToObject(e) {
|
|
@@ -28,25 +28,25 @@ const Ao = _({
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const _ = (e, t) => {
|
|
32
32
|
const n = e.__vccOpts || e;
|
|
33
33
|
for (const [r, o] of t)
|
|
34
34
|
n[r] = o;
|
|
35
35
|
return n;
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
return e.link ? (
|
|
36
|
+
}, bo = ["href", "target"];
|
|
37
|
+
function ko(e, t, n, r, o, i) {
|
|
38
|
+
return e.link ? (b(), x("a", oe({
|
|
39
39
|
key: 0,
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
42
|
role: "button"
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ot(e.filterAttrs(e.attributes, "v-on:", !0), !0)), rr(e.text), 17,
|
|
43
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ot(e.filterAttrs(e.attributes, "v-on:", !0), !0)), rr(e.text), 17, bo)) : (b(), x("button", oe({
|
|
44
44
|
key: 1,
|
|
45
45
|
style: e.attributes.style,
|
|
46
46
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
47
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ot(e.filterAttrs(e.attributes, "v-on:", !0), !0)), rr(e.text), 17));
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Eo = /* @__PURE__ */ _(Co, [["render", ko], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), So = Symbol(), sn = {
|
|
50
50
|
Builder: {
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
@@ -57,14 +57,16 @@ const ko = /* @__PURE__ */ N(Ao, [["render", bo], ["__scopeId", "data-v-becdf225
|
|
|
57
57
|
apiKey: null,
|
|
58
58
|
apiVersion: void 0,
|
|
59
59
|
componentInfos: {},
|
|
60
|
-
inheritedStyles: {}
|
|
60
|
+
inheritedStyles: {},
|
|
61
|
+
BlocksWrapper: "div",
|
|
62
|
+
BlocksWrapperProps: {}
|
|
61
63
|
},
|
|
62
|
-
key: Eo
|
|
63
|
-
}, So = Symbol(), Er = {
|
|
64
|
-
Components: { registeredComponents: {} },
|
|
65
64
|
key: So
|
|
65
|
+
}, Fo = Symbol(), Sr = {
|
|
66
|
+
Components: { registeredComponents: {} },
|
|
67
|
+
key: Fo
|
|
66
68
|
};
|
|
67
|
-
function
|
|
69
|
+
function wo(e) {
|
|
68
70
|
var t;
|
|
69
71
|
return {
|
|
70
72
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -72,44 +74,44 @@ function Fo(e) {
|
|
|
72
74
|
builderBlock: e
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
|
-
const ae = "vue3",
|
|
77
|
+
const ae = "vue3", Bo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), ve = (e) => e != null, Do = (e) => Object.entries(e).map(([n, r]) => {
|
|
76
78
|
if (typeof r == "string")
|
|
77
|
-
return `${
|
|
78
|
-
}).filter(ve),
|
|
79
|
-
`),
|
|
79
|
+
return `${Bo(n)}: ${r};`;
|
|
80
|
+
}).filter(ve), xo = (e) => Do(e).join(`
|
|
81
|
+
`), en = ({
|
|
80
82
|
mediaQuery: e,
|
|
81
83
|
className: t,
|
|
82
84
|
styles: n
|
|
83
85
|
}) => {
|
|
84
86
|
const r = `.${t} {
|
|
85
|
-
${
|
|
87
|
+
${xo(n)}
|
|
86
88
|
}`;
|
|
87
89
|
return e ? `${e} {
|
|
88
90
|
${r}
|
|
89
91
|
}` : r;
|
|
90
|
-
},
|
|
91
|
-
log: (...e) => console.log(
|
|
92
|
-
error: (...e) => console.error(
|
|
93
|
-
warn: (...e) => console.warn(
|
|
94
|
-
debug: (...e) => console.debug(
|
|
92
|
+
}, bt = "[Builder.io]: ", ee = {
|
|
93
|
+
log: (...e) => console.log(bt, ...e),
|
|
94
|
+
error: (...e) => console.error(bt, ...e),
|
|
95
|
+
warn: (...e) => console.warn(bt, ...e),
|
|
96
|
+
debug: (...e) => console.debug(bt, ...e)
|
|
95
97
|
};
|
|
96
98
|
function J() {
|
|
97
99
|
return typeof window < "u" && typeof document < "u";
|
|
98
100
|
}
|
|
99
|
-
function
|
|
101
|
+
function Io() {
|
|
100
102
|
return J() && window.self !== window.top;
|
|
101
103
|
}
|
|
102
104
|
function ge() {
|
|
103
|
-
return
|
|
105
|
+
return Io() && (ae === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
104
106
|
}
|
|
105
|
-
const
|
|
107
|
+
const To = () => {
|
|
106
108
|
if (J()) {
|
|
107
109
|
const e = new URL(location.href);
|
|
108
110
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
109
111
|
} else
|
|
110
112
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
111
|
-
},
|
|
112
|
-
const e =
|
|
113
|
+
}, Ro = () => typeof navigator == "object" && navigator.userAgent || "", Fr = () => {
|
|
114
|
+
const e = Ro(), t = {
|
|
113
115
|
Android() {
|
|
114
116
|
return e.match(/Android/i);
|
|
115
117
|
},
|
|
@@ -128,13 +130,13 @@ const Io = () => {
|
|
|
128
130
|
any() {
|
|
129
131
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ae === "reactNative";
|
|
130
132
|
}
|
|
131
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
133
|
+
}, n = e.match(/Tablet|iPad/i), r = To();
|
|
132
134
|
return {
|
|
133
135
|
urlPath: r == null ? void 0 : r.pathname,
|
|
134
136
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
135
137
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
136
138
|
};
|
|
137
|
-
},
|
|
139
|
+
}, wr = ({
|
|
138
140
|
builder: e,
|
|
139
141
|
context: t,
|
|
140
142
|
event: n,
|
|
@@ -145,14 +147,14 @@ const Io = () => {
|
|
|
145
147
|
builder: e,
|
|
146
148
|
context: t,
|
|
147
149
|
event: n
|
|
148
|
-
}),
|
|
150
|
+
}), jo = () => ({
|
|
149
151
|
isEditing: ge(),
|
|
150
152
|
isBrowser: J(),
|
|
151
153
|
isServer: !J(),
|
|
152
|
-
getUserAttributes: () =>
|
|
153
|
-
}),
|
|
154
|
+
getUserAttributes: () => Fr()
|
|
155
|
+
}), Oo = (e, {
|
|
154
156
|
isExpression: t = !0
|
|
155
|
-
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
157
|
+
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, $o = ({
|
|
156
158
|
code: e,
|
|
157
159
|
builder: t,
|
|
158
160
|
context: n,
|
|
@@ -161,15 +163,15 @@ const Io = () => {
|
|
|
161
163
|
rootSetState: i,
|
|
162
164
|
rootState: u
|
|
163
165
|
}) => {
|
|
164
|
-
const p =
|
|
166
|
+
const p = wr({
|
|
165
167
|
builder: t,
|
|
166
168
|
context: n,
|
|
167
169
|
event: r,
|
|
168
|
-
state:
|
|
170
|
+
state: Po(u, o, i)
|
|
169
171
|
});
|
|
170
172
|
return new Function(...p.map(([h]) => h), e)(...p.map(([, h]) => h));
|
|
171
173
|
};
|
|
172
|
-
function
|
|
174
|
+
function Po(e, t, n) {
|
|
173
175
|
if (e === t)
|
|
174
176
|
throw new Error("rootState === localState");
|
|
175
177
|
return new Proxy(e, {
|
|
@@ -181,25 +183,25 @@ function $o(e, t, n) {
|
|
|
181
183
|
}
|
|
182
184
|
});
|
|
183
185
|
}
|
|
184
|
-
const
|
|
186
|
+
const Br = (e, t, n) => {
|
|
185
187
|
if (Object(e) !== e)
|
|
186
188
|
return e;
|
|
187
189
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
188
190
|
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;
|
|
189
191
|
};
|
|
190
|
-
var
|
|
192
|
+
var T, No = function(e) {
|
|
191
193
|
function t(s) {
|
|
192
|
-
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
194
|
+
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && yo.test(String.fromCharCode(s));
|
|
193
195
|
}
|
|
194
196
|
function n(s) {
|
|
195
197
|
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && nr.test(String.fromCharCode(s));
|
|
196
198
|
}
|
|
197
199
|
function r(s, a) {
|
|
198
200
|
for (var l = g, d = 1, F = 0; ; ) {
|
|
199
|
-
|
|
200
|
-
var
|
|
201
|
-
if (
|
|
202
|
-
++d, F =
|
|
201
|
+
At.lastIndex = F;
|
|
202
|
+
var K = At.exec(l);
|
|
203
|
+
if (K && K.index < s)
|
|
204
|
+
++d, F = K.index + K[0].length;
|
|
203
205
|
else
|
|
204
206
|
break;
|
|
205
207
|
}
|
|
@@ -243,7 +245,7 @@ var I, Po = function(e) {
|
|
|
243
245
|
s = void 0;
|
|
244
246
|
var a = B.va && B.C && new i(), l = c, d = g.indexOf("*/", c += 2);
|
|
245
247
|
if (d === -1 && r(c - 2, "Unterminated comment"), c = d + 2, B.C)
|
|
246
|
-
for (
|
|
248
|
+
for (At.lastIndex = l; (s = At.exec(g)) && s.index < c; )
|
|
247
249
|
++Be, pe = s.index + s[0].length;
|
|
248
250
|
B.va && B.va(!0, g.slice(l + 2, d), l, c, a, B.C && new i());
|
|
249
251
|
} else if (s === 47)
|
|
@@ -252,7 +254,7 @@ var I, Po = function(e) {
|
|
|
252
254
|
break;
|
|
253
255
|
else if (s === 160)
|
|
254
256
|
++c;
|
|
255
|
-
else if (5760 <= s &&
|
|
257
|
+
else if (5760 <= s && go.test(String.fromCharCode(s)))
|
|
256
258
|
++c;
|
|
257
259
|
else
|
|
258
260
|
break;
|
|
@@ -272,9 +274,9 @@ var I, Po = function(e) {
|
|
|
272
274
|
case 44:
|
|
273
275
|
return ++c, u(ke);
|
|
274
276
|
case 91:
|
|
275
|
-
return ++c, u(Jt);
|
|
276
|
-
case 93:
|
|
277
277
|
return ++c, u(Yt);
|
|
278
|
+
case 93:
|
|
279
|
+
return ++c, u(qt);
|
|
278
280
|
case 123:
|
|
279
281
|
return ++c, u(Je);
|
|
280
282
|
case 125:
|
|
@@ -285,7 +287,7 @@ var I, Po = function(e) {
|
|
|
285
287
|
return ++c, u(Jn);
|
|
286
288
|
case 48:
|
|
287
289
|
if (s = g.charCodeAt(c + 1), s === 120 || s === 88) {
|
|
288
|
-
c += 2, s = $(16), s === null && r(
|
|
290
|
+
c += 2, s = $(16), s === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), u(Xe, s);
|
|
289
291
|
return;
|
|
290
292
|
}
|
|
291
293
|
case 49:
|
|
@@ -302,10 +304,10 @@ var I, Po = function(e) {
|
|
|
302
304
|
case 39:
|
|
303
305
|
c++;
|
|
304
306
|
for (var a = ""; ; ) {
|
|
305
|
-
c >= Te && r(
|
|
307
|
+
c >= Te && r(L, "Unterminated string constant");
|
|
306
308
|
var l = g.charCodeAt(c);
|
|
307
309
|
if (l === s) {
|
|
308
|
-
++c, u(
|
|
310
|
+
++c, u(mt, a);
|
|
309
311
|
break;
|
|
310
312
|
}
|
|
311
313
|
if (l === 92) {
|
|
@@ -325,13 +327,13 @@ var I, Po = function(e) {
|
|
|
325
327
|
a += "\r";
|
|
326
328
|
break;
|
|
327
329
|
case 120:
|
|
328
|
-
a += String.fromCharCode(
|
|
330
|
+
a += String.fromCharCode(M(2));
|
|
329
331
|
break;
|
|
330
332
|
case 117:
|
|
331
|
-
a += String.fromCharCode(
|
|
333
|
+
a += String.fromCharCode(M(4));
|
|
332
334
|
break;
|
|
333
335
|
case 85:
|
|
334
|
-
a += String.fromCharCode(
|
|
336
|
+
a += String.fromCharCode(M(8));
|
|
335
337
|
break;
|
|
336
338
|
case 116:
|
|
337
339
|
a += " ";
|
|
@@ -357,43 +359,43 @@ var I, Po = function(e) {
|
|
|
357
359
|
a += String.fromCharCode(l);
|
|
358
360
|
}
|
|
359
361
|
} else
|
|
360
|
-
l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || r(
|
|
362
|
+
l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || r(L, "Unterminated string constant"), a += String.fromCharCode(l), ++c;
|
|
361
363
|
}
|
|
362
364
|
return;
|
|
363
365
|
case 47:
|
|
364
|
-
s = g.charCodeAt(c + 1), Ge ? (++c,
|
|
366
|
+
s = g.charCodeAt(c + 1), Ge ? (++c, I()) : s === 61 ? A(De, 2) : A(Yn, 1);
|
|
365
367
|
return;
|
|
366
368
|
case 37:
|
|
367
369
|
case 42:
|
|
368
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
370
|
+
g.charCodeAt(c + 1) === 61 ? A(De, 2) : A(ho, 1);
|
|
369
371
|
return;
|
|
370
372
|
case 124:
|
|
371
373
|
case 38:
|
|
372
|
-
a = g.charCodeAt(c + 1), a === s ?
|
|
374
|
+
a = g.charCodeAt(c + 1), a === s ? A(s === 124 ? Qn : er, 2) : a === 61 ? A(De, 2) : A(s === 124 ? io : uo, 1);
|
|
373
375
|
return;
|
|
374
376
|
case 94:
|
|
375
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
377
|
+
g.charCodeAt(c + 1) === 61 ? A(De, 2) : A(so, 1);
|
|
376
378
|
return;
|
|
377
379
|
case 43:
|
|
378
380
|
case 45:
|
|
379
|
-
a = g.charCodeAt(c + 1), a === s ? a === 45 && g.charCodeAt(c + 2) === 62 &&
|
|
381
|
+
a = g.charCodeAt(c + 1), a === s ? a === 45 && g.charCodeAt(c + 2) === 62 && vt.test(g.slice(be, c)) ? (c += 3, p(), h(), v()) : A(oo, 2) : a === 61 ? A(De, 2) : A(po, 1);
|
|
380
382
|
return;
|
|
381
383
|
case 60:
|
|
382
384
|
case 62:
|
|
383
|
-
a = g.charCodeAt(c + 1), l = 1, a === s ? (l = s === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ?
|
|
385
|
+
a = g.charCodeAt(c + 1), l = 1, a === s ? (l = s === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(De, l + 1) : A(co, l)) : a === 33 && s === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, p(), h(), v()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(lo, l));
|
|
384
386
|
return;
|
|
385
387
|
case 61:
|
|
386
388
|
case 33:
|
|
387
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
389
|
+
g.charCodeAt(c + 1) === 61 ? A(ao, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(s === 61 ? qn : Zn, 1);
|
|
388
390
|
return;
|
|
389
391
|
case 126:
|
|
390
|
-
return
|
|
392
|
+
return A(Zn, 1);
|
|
391
393
|
}
|
|
392
394
|
return !1;
|
|
393
395
|
}
|
|
394
396
|
function v(s) {
|
|
395
|
-
if (s ? c =
|
|
396
|
-
return
|
|
397
|
+
if (s ? c = L + 1 : L = c, B.C && (Mt = new i()), s)
|
|
398
|
+
return I();
|
|
397
399
|
if (c >= Te)
|
|
398
400
|
return u(Lt);
|
|
399
401
|
if (s = g.charCodeAt(c), n(s) || s === 92)
|
|
@@ -404,15 +406,15 @@ var I, Po = function(e) {
|
|
|
404
406
|
r(c, "Unexpected character '" + s + "'");
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
|
-
function
|
|
409
|
+
function A(s, a) {
|
|
408
410
|
var l = g.slice(c, c + a);
|
|
409
411
|
c += a, u(s, l);
|
|
410
412
|
}
|
|
411
|
-
function
|
|
413
|
+
function I() {
|
|
412
414
|
for (var s, a, l = c; ; ) {
|
|
413
415
|
c >= Te && r(l, "Unterminated regexp");
|
|
414
416
|
var d = g.charAt(c);
|
|
415
|
-
if (
|
|
417
|
+
if (vt.test(d) && r(l, "Unterminated regexp"), s)
|
|
416
418
|
s = !1;
|
|
417
419
|
else {
|
|
418
420
|
if (d === "[")
|
|
@@ -428,13 +430,13 @@ var I, Po = function(e) {
|
|
|
428
430
|
s = g.slice(l, c), ++c, (a = te()) && !/^[gmi]*$/.test(a) && r(l, "Invalid regexp flag");
|
|
429
431
|
try {
|
|
430
432
|
var F = new RegExp(s, a);
|
|
431
|
-
} catch (
|
|
432
|
-
throw
|
|
433
|
+
} catch (K) {
|
|
434
|
+
throw K instanceof SyntaxError && r(l, K.message), K;
|
|
433
435
|
}
|
|
434
436
|
u(xn, F);
|
|
435
437
|
}
|
|
436
438
|
function $(s, a) {
|
|
437
|
-
for (var l = c, d = 0, F = a === void 0 ? 1 / 0 : a,
|
|
439
|
+
for (var l = c, d = 0, F = a === void 0 ? 1 / 0 : a, K = 0; K < F; ++K) {
|
|
438
440
|
var Y = g.charCodeAt(c);
|
|
439
441
|
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= s)
|
|
440
442
|
break;
|
|
@@ -448,8 +450,8 @@ var I, Po = function(e) {
|
|
|
448
450
|
var F;
|
|
449
451
|
l ? F = parseFloat(s) : d && s.length !== 1 ? /[89]/.test(s) || Q ? r(a, "Invalid number") : F = parseInt(s, 8) : F = parseInt(s, 10), u(Xe, F);
|
|
450
452
|
}
|
|
451
|
-
function
|
|
452
|
-
return s = $(16, s), s === null && r(
|
|
453
|
+
function M(s) {
|
|
454
|
+
return s = $(16, s), s === null && r(L, "Bad character escape sequence"), s;
|
|
453
455
|
}
|
|
454
456
|
function te() {
|
|
455
457
|
$e = !1;
|
|
@@ -458,7 +460,7 @@ var I, Po = function(e) {
|
|
|
458
460
|
if (t(d))
|
|
459
461
|
$e && (s += g.charAt(c)), ++c;
|
|
460
462
|
else if (d === 92) {
|
|
461
|
-
$e || (s = g.slice(l, c)), $e = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, d =
|
|
463
|
+
$e || (s = g.slice(l, c)), $e = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, d = M(4);
|
|
462
464
|
var F = String.fromCharCode(d);
|
|
463
465
|
F || r(c - 1, "Invalid Unicode escape"), (a ? n(d) : t(d)) || r(c - 4, "Invalid Unicode escape"), s += F;
|
|
464
466
|
} else
|
|
@@ -469,175 +471,175 @@ var I, Po = function(e) {
|
|
|
469
471
|
}
|
|
470
472
|
function Fe() {
|
|
471
473
|
var s = te(), a = je;
|
|
472
|
-
!$e &&
|
|
474
|
+
!$e && mo(s) && (a = ro[s]), u(a, s);
|
|
473
475
|
}
|
|
474
476
|
function E() {
|
|
475
|
-
|
|
477
|
+
Wt = L, be = Re, Vt = Ut, v();
|
|
476
478
|
}
|
|
477
|
-
function
|
|
478
|
-
if (Q = s, c =
|
|
479
|
+
function We(s) {
|
|
480
|
+
if (Q = s, c = L, B.C)
|
|
479
481
|
for (; c < pe; )
|
|
480
482
|
pe = g.lastIndexOf(`
|
|
481
483
|
`, pe - 2) + 1, --Be;
|
|
482
484
|
h(), v();
|
|
483
485
|
}
|
|
484
|
-
function
|
|
485
|
-
this.type = null, this.start =
|
|
486
|
+
function Ve() {
|
|
487
|
+
this.type = null, this.start = L, this.end = null;
|
|
486
488
|
}
|
|
487
489
|
function ie() {
|
|
488
|
-
this.start =
|
|
490
|
+
this.start = Mt, this.end = null, _t && (this.source = _t);
|
|
489
491
|
}
|
|
490
492
|
function j() {
|
|
491
|
-
var s = new
|
|
492
|
-
return B.C && (s.X = new ie()), B.vb && (s.sourceFile = B.vb), B.Xa && (s.j = [
|
|
493
|
+
var s = new Ve();
|
|
494
|
+
return B.C && (s.X = new ie()), B.vb && (s.sourceFile = B.vb), B.Xa && (s.j = [L, 0]), s;
|
|
493
495
|
}
|
|
494
496
|
function Ce(s) {
|
|
495
|
-
var a = new
|
|
497
|
+
var a = new Ve();
|
|
496
498
|
return a.start = s.start, B.C && (a.X = new ie(), a.X.start = s.X.start), B.Xa && (a.j = [s.j[0], 0]), a;
|
|
497
499
|
}
|
|
498
500
|
function w(s, a) {
|
|
499
501
|
return s.type = a, s.end = be, B.C && (s.X.end = Vt), B.Xa && (s.j[1] = be), s;
|
|
500
502
|
}
|
|
501
|
-
function
|
|
503
|
+
function Tt(s) {
|
|
502
504
|
return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
|
|
503
505
|
}
|
|
504
506
|
function O(s) {
|
|
505
507
|
return S === s ? (E(), !0) : !1;
|
|
506
508
|
}
|
|
507
|
-
function
|
|
508
|
-
return !B.fc && (S === Lt || S === Oe ||
|
|
509
|
+
function dt() {
|
|
510
|
+
return !B.fc && (S === Lt || S === Oe || vt.test(g.slice(be, L)));
|
|
509
511
|
}
|
|
510
512
|
function we() {
|
|
511
|
-
O(he) ||
|
|
513
|
+
O(he) || dt() || le();
|
|
512
514
|
}
|
|
513
|
-
function
|
|
515
|
+
function U(s) {
|
|
514
516
|
S === s ? E() : le();
|
|
515
517
|
}
|
|
516
518
|
function le() {
|
|
517
|
-
r(
|
|
519
|
+
r(L, "Unexpected token");
|
|
518
520
|
}
|
|
519
|
-
function
|
|
520
|
-
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), Q && s.type === "Identifier" &&
|
|
521
|
+
function ht(s) {
|
|
522
|
+
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), Q && s.type === "Identifier" && yt(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
521
523
|
}
|
|
522
524
|
function se() {
|
|
523
525
|
(S === Yn || S === De && ne === "/=") && v(!0);
|
|
524
526
|
var s = S, a = j();
|
|
525
527
|
switch (s) {
|
|
526
|
-
case
|
|
528
|
+
case Ht:
|
|
527
529
|
case Tn:
|
|
528
530
|
E();
|
|
529
|
-
var l = s ===
|
|
530
|
-
O(he) ||
|
|
531
|
-
for (var d = 0; d <
|
|
532
|
-
var F =
|
|
531
|
+
var l = s === Ht;
|
|
532
|
+
O(he) || dt() ? a.label = null : S !== je ? le() : (a.label = ce(), we());
|
|
533
|
+
for (var d = 0; d < W.length; ++d) {
|
|
534
|
+
var F = W[d];
|
|
533
535
|
if ((a.label === null || F.name === a.label.name) && (F.kind !== null && (l || F.kind === "loop") || a.label && l))
|
|
534
536
|
break;
|
|
535
537
|
}
|
|
536
|
-
return d ===
|
|
538
|
+
return d === W.length && r(a.start, "Unsyntactic " + s.l), w(a, l ? "BreakStatement" : "ContinueStatement");
|
|
537
539
|
case Rn:
|
|
538
540
|
return E(), we(), w(a, "DebuggerStatement");
|
|
539
541
|
case On:
|
|
540
|
-
return E(),
|
|
541
|
-
case _n:
|
|
542
|
-
return E(), V.push(qt), M(de), S === he ? Tt(a, null) : S === zt ? (s = j(), E(), Bn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && O(mt) ? wn(a, s) : Tt(a, s)) : (s = X(!1, !0), O(mt) ? (dt(s), wn(a, s)) : Tt(a, s));
|
|
543
|
-
case Kt:
|
|
544
|
-
return E(), $t(a, !0);
|
|
542
|
+
return E(), W.push(Zt), a.body = se(), W.pop(), U(Jt), a.test = Le(), we(), w(a, "DoWhileStatement");
|
|
545
543
|
case Nn:
|
|
546
|
-
return E(),
|
|
547
|
-
case Un:
|
|
548
|
-
return ze || B.Ib || r(W, "'return' outside of function"), E(), O(he) || pt() ? a.K = null : (a.K = X(), we()), w(a, "ReturnStatement");
|
|
544
|
+
return E(), W.push(Zt), U(de), S === he ? Rt(a, null) : S === Xt ? (s = j(), E(), Bn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && O(gt) ? wn(a, s) : Rt(a, s)) : (s = X(!1, !0), O(gt) ? (ht(s), wn(a, s)) : Rt(a, s));
|
|
549
545
|
case Gt:
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
return
|
|
546
|
+
return E(), Pt(a, !0);
|
|
547
|
+
case _n:
|
|
548
|
+
return E(), a.test = Le(), a.da = se(), a.alternate = O($n) ? se() : null, w(a, "IfStatement");
|
|
553
549
|
case Mn:
|
|
554
|
-
return
|
|
555
|
-
case Vn:
|
|
556
|
-
return E(), a.block = He(), a.Ea = null, S === In && (s = j(), E(), M(de), s.Ua = ce(), Q && gt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), M(ue), s.body = He(), a.Ea = w(s, "CatchClause")), a.fb = O(Pn) ? He() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
|
|
550
|
+
return ze || B.Ib || r(L, "'return' outside of function"), E(), O(he) || dt() ? a.K = null : (a.K = X(), we()), w(a, "ReturnStatement");
|
|
557
551
|
case zt:
|
|
558
|
-
|
|
552
|
+
for (E(), a.Qb = Le(), a.tb = [], U(Je), W.push(vo); S !== Oe; )
|
|
553
|
+
S === Kt || S === jn ? (s = S === Kt, d && w(d, "SwitchCase"), a.tb.push(d = j()), d.da = [], E(), s ? d.test = X() : (l && r(Wt, "Multiple default clauses"), l = !0, d.test = null), U(Ye)) : (d || le(), d.da.push(se()));
|
|
554
|
+
return d && w(d, "SwitchCase"), E(), W.pop(), w(a, "SwitchStatement");
|
|
555
|
+
case Un:
|
|
556
|
+
return E(), vt.test(g.slice(be, L)) && r(be, "Illegal newline after throw"), a.K = X(), we(), w(a, "ThrowStatement");
|
|
557
|
+
case Wn:
|
|
558
|
+
return E(), a.block = He(), a.Ea = null, S === In && (s = j(), E(), U(de), s.Ua = ce(), Q && yt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), U(ue), s.body = He(), a.Ea = w(s, "CatchClause")), a.fb = O(Pn) ? He() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
|
|
559
559
|
case Xt:
|
|
560
|
-
return E(),
|
|
561
|
-
case
|
|
562
|
-
return
|
|
560
|
+
return E(), Bn(a), we(), w(a, "VariableDeclaration");
|
|
561
|
+
case Jt:
|
|
562
|
+
return E(), a.test = Le(), W.push(Zt), a.body = se(), W.pop(), w(a, "WhileStatement");
|
|
563
|
+
case Vn:
|
|
564
|
+
return Q && r(L, "'with' in strict mode"), E(), a.object = Le(), a.body = se(), w(a, "WithStatement");
|
|
563
565
|
case Je:
|
|
564
566
|
return He();
|
|
565
567
|
case he:
|
|
566
568
|
return E(), w(a, "EmptyStatement");
|
|
567
569
|
default:
|
|
568
570
|
if (l = ne, F = X(), s === je && F.type === "Identifier" && O(Ye)) {
|
|
569
|
-
for (d = 0; d <
|
|
570
|
-
|
|
571
|
-
return
|
|
571
|
+
for (d = 0; d < W.length; ++d)
|
|
572
|
+
W[d].name === l && r(F.start, "Label '" + l + "' is already declared");
|
|
573
|
+
return W.push({
|
|
572
574
|
name: l,
|
|
573
|
-
kind: S.W ? "loop" : S ===
|
|
574
|
-
}), a.body = se(),
|
|
575
|
+
kind: S.W ? "loop" : S === zt ? "switch" : null
|
|
576
|
+
}), a.body = se(), W.pop(), a.label = F, w(a, "LabeledStatement");
|
|
575
577
|
}
|
|
576
578
|
return a.la = F, we(), w(a, "ExpressionStatement");
|
|
577
579
|
}
|
|
578
580
|
}
|
|
579
|
-
function
|
|
580
|
-
|
|
581
|
+
function Le() {
|
|
582
|
+
U(de);
|
|
581
583
|
var s = X();
|
|
582
|
-
return
|
|
584
|
+
return U(ue), s;
|
|
583
585
|
}
|
|
584
586
|
function He(s) {
|
|
585
587
|
var a = j(), l = !0, d = !1;
|
|
586
|
-
for (a.body = [],
|
|
588
|
+
for (a.body = [], U(Je); !O(Oe); ) {
|
|
587
589
|
var F = se();
|
|
588
|
-
if (a.body.push(F), l && s &&
|
|
589
|
-
var
|
|
590
|
-
|
|
590
|
+
if (a.body.push(F), l && s && Tt(F)) {
|
|
591
|
+
var K = d;
|
|
592
|
+
We(d = !0);
|
|
591
593
|
}
|
|
592
594
|
l = !1;
|
|
593
595
|
}
|
|
594
|
-
return d && !
|
|
596
|
+
return d && !K && We(!1), w(a, "BlockStatement");
|
|
595
597
|
}
|
|
596
|
-
function
|
|
597
|
-
return s.ua = a,
|
|
598
|
+
function Rt(s, a) {
|
|
599
|
+
return s.ua = a, U(he), s.test = S === he ? null : X(), U(he), s.update = S === ue ? null : X(), U(ue), s.body = se(), W.pop(), w(s, "ForStatement");
|
|
598
600
|
}
|
|
599
601
|
function wn(s, a) {
|
|
600
|
-
return s.left = a, s.right = X(),
|
|
602
|
+
return s.left = a, s.right = X(), U(ue), s.body = se(), W.pop(), w(s, "ForInStatement");
|
|
601
603
|
}
|
|
602
604
|
function Bn(s, a) {
|
|
603
605
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
604
606
|
var l = j();
|
|
605
|
-
if (l.id = ce(), Q &&
|
|
607
|
+
if (l.id = ce(), Q && yt(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = O(qn) ? X(!0, a) : null, s.fa.push(w(l, "VariableDeclarator")), !O(ke))
|
|
606
608
|
break;
|
|
607
609
|
}
|
|
608
610
|
}
|
|
609
611
|
function X(s, a) {
|
|
610
|
-
var l =
|
|
612
|
+
var l = jt(a);
|
|
611
613
|
if (!s && S === ke) {
|
|
612
614
|
for (s = Ce(l), s.xb = [l]; O(ke); )
|
|
613
|
-
s.xb.push(
|
|
615
|
+
s.xb.push(jt(a));
|
|
614
616
|
return w(s, "SequenceExpression");
|
|
615
617
|
}
|
|
616
618
|
return l;
|
|
617
619
|
}
|
|
618
|
-
function
|
|
619
|
-
var a =
|
|
620
|
+
function jt(s) {
|
|
621
|
+
var a = Ot($t(), -1, s);
|
|
620
622
|
if (O(Jn)) {
|
|
621
623
|
var l = Ce(a);
|
|
622
|
-
l.test = a, l.da = X(!0),
|
|
624
|
+
l.test = a, l.da = X(!0), U(Ye), l.alternate = X(!0, s), a = w(l, "ConditionalExpression");
|
|
623
625
|
}
|
|
624
|
-
return S.Cb ? (l = Ce(a), l.operator = ne, l.left = a, E(), l.right =
|
|
626
|
+
return S.Cb ? (l = Ce(a), l.operator = ne, l.left = a, E(), l.right = jt(s), ht(a), w(l, "AssignmentExpression")) : a;
|
|
625
627
|
}
|
|
626
|
-
function
|
|
628
|
+
function Ot(s, a, l) {
|
|
627
629
|
var d = S.L;
|
|
628
|
-
if (d !== null && (!l || S !==
|
|
630
|
+
if (d !== null && (!l || S !== gt) && d > a) {
|
|
629
631
|
var F = Ce(s);
|
|
630
|
-
return F.left = s, F.operator = ne, s = S, E(), F.right =
|
|
632
|
+
return F.left = s, F.operator = ne, s = S, E(), F.right = Ot($t(), d, l), d = w(F, s === Qn || s === er ? "LogicalExpression" : "BinaryExpression"), Ot(d, a, l);
|
|
631
633
|
}
|
|
632
634
|
return s;
|
|
633
635
|
}
|
|
634
|
-
function
|
|
636
|
+
function $t() {
|
|
635
637
|
if (S.prefix) {
|
|
636
638
|
var s = j(), a = S.$b;
|
|
637
|
-
return s.operator = ne, Ge = s.prefix = !0, E(), s.K =
|
|
639
|
+
return s.operator = ne, Ge = s.prefix = !0, E(), s.K = $t(), a ? ht(s.K) : Q && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), w(s, a ? "UpdateExpression" : "UnaryExpression");
|
|
638
640
|
}
|
|
639
|
-
for (a = Ke(
|
|
640
|
-
s = Ce(a), s.operator = ne, s.prefix = !1, s.K = a,
|
|
641
|
+
for (a = Ke(ft()); S.cc && !dt(); )
|
|
642
|
+
s = Ce(a), s.operator = ne, s.prefix = !1, s.K = a, ht(a), E(), a = w(s, "UpdateExpression");
|
|
641
643
|
return a;
|
|
642
644
|
}
|
|
643
645
|
function Ke(s, a) {
|
|
@@ -645,9 +647,9 @@ var I, Po = function(e) {
|
|
|
645
647
|
var l = Ce(s);
|
|
646
648
|
return l.object = s, l.Wa = ce(!0), l.bb = !1, Ke(w(l, "MemberExpression"), a);
|
|
647
649
|
}
|
|
648
|
-
return O(
|
|
650
|
+
return O(Yt) ? (l = Ce(s), l.object = s, l.Wa = X(), l.bb = !0, U(qt), Ke(w(l, "MemberExpression"), a)) : !a && O(de) ? (l = Ce(s), l.callee = s, l.arguments = Nt(ue, !1), Ke(w(l, "CallExpression"), a)) : s;
|
|
649
651
|
}
|
|
650
|
-
function
|
|
652
|
+
function ft() {
|
|
651
653
|
switch (S) {
|
|
652
654
|
case Hn:
|
|
653
655
|
var s = j();
|
|
@@ -655,73 +657,73 @@ var I, Po = function(e) {
|
|
|
655
657
|
case je:
|
|
656
658
|
return ce();
|
|
657
659
|
case Xe:
|
|
658
|
-
case
|
|
660
|
+
case mt:
|
|
659
661
|
case xn:
|
|
660
|
-
return s = j(), s.value = ne, s.raw = g.slice(
|
|
662
|
+
return s = j(), s.value = ne, s.raw = g.slice(L, Re), E(), w(s, "Literal");
|
|
661
663
|
case Kn:
|
|
662
664
|
case Gn:
|
|
663
665
|
case zn:
|
|
664
666
|
return s = j(), s.value = S.$a, s.raw = S.l, E(), w(s, "Literal");
|
|
665
667
|
case de:
|
|
666
|
-
s =
|
|
667
|
-
var a =
|
|
668
|
+
s = Mt;
|
|
669
|
+
var a = L;
|
|
668
670
|
E();
|
|
669
671
|
var l = X();
|
|
670
|
-
return l.start = a, l.end = Re, B.C && (l.X.start = s, l.X.end = Ut), B.Xa && (l.j = [a, Re]),
|
|
671
|
-
case
|
|
672
|
-
return s = j(), E(), s.elements =
|
|
672
|
+
return l.start = a, l.end = Re, B.C && (l.X.start = s, l.X.end = Ut), B.Xa && (l.j = [a, Re]), U(ue), l;
|
|
673
|
+
case Yt:
|
|
674
|
+
return s = j(), E(), s.elements = Nt(qt, !0, !0), w(s, "ArrayExpression");
|
|
673
675
|
case Je:
|
|
674
676
|
for (s = j(), a = !0, l = !1, s.h = [], E(); !O(Oe); ) {
|
|
675
677
|
if (a)
|
|
676
678
|
a = !1;
|
|
677
|
-
else if (
|
|
679
|
+
else if (U(ke), B.sb && O(Oe))
|
|
678
680
|
break;
|
|
679
681
|
var d = {
|
|
680
|
-
key: S === Xe || S ===
|
|
682
|
+
key: S === Xe || S === mt ? ft() : ce(!0)
|
|
681
683
|
}, F = !1;
|
|
682
684
|
if (O(Ye)) {
|
|
683
685
|
d.value = X(!0);
|
|
684
|
-
var
|
|
686
|
+
var K = d.kind = "init";
|
|
685
687
|
} else
|
|
686
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? le() : (F = l = !0,
|
|
688
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? le() : (F = l = !0, K = d.kind = d.key.name, d.key = S === Xe || S === mt ? ft() : ce(!0), S !== de && le(), d.value = Pt(j(), !1));
|
|
687
689
|
if (d.key.type === "Identifier" && (Q || l))
|
|
688
690
|
for (var Y = 0; Y < s.h.length; ++Y) {
|
|
689
691
|
var Pe = s.h[Y];
|
|
690
692
|
if (Pe.key.name === d.key.name) {
|
|
691
|
-
var
|
|
692
|
-
|
|
693
|
+
var Qt = K === Pe.kind || F && Pe.kind === "init" || K === "init" && (Pe.kind === "get" || Pe.kind === "set");
|
|
694
|
+
Qt && !Q && K === "init" && Pe.kind === "init" && (Qt = !1), Qt && r(d.key.start, "Redefinition of property");
|
|
693
695
|
}
|
|
694
696
|
}
|
|
695
697
|
s.h.push(d);
|
|
696
698
|
}
|
|
697
699
|
return w(s, "ObjectExpression");
|
|
698
|
-
case
|
|
699
|
-
return s = j(), E(),
|
|
700
|
-
case
|
|
701
|
-
return s = j(), E(), s.callee = Ke(
|
|
700
|
+
case Gt:
|
|
701
|
+
return s = j(), E(), Pt(s, !1);
|
|
702
|
+
case Ln:
|
|
703
|
+
return s = j(), E(), s.callee = Ke(ft(), !0), s.arguments = O(de) ? Nt(ue, !1) : no, w(s, "NewExpression");
|
|
702
704
|
}
|
|
703
705
|
le();
|
|
704
706
|
}
|
|
705
|
-
function
|
|
707
|
+
function Pt(s, a) {
|
|
706
708
|
S === je ? s.id = ce() : a ? le() : s.id = null, s.oa = [];
|
|
707
709
|
var l = !0;
|
|
708
|
-
for (
|
|
709
|
-
l ? l = !1 :
|
|
710
|
+
for (U(de); !O(ue); )
|
|
711
|
+
l ? l = !1 : U(ke), s.oa.push(ce());
|
|
710
712
|
l = ze;
|
|
711
|
-
var d =
|
|
712
|
-
if (ze = !0,
|
|
713
|
+
var d = W;
|
|
714
|
+
if (ze = !0, W = [], s.body = He(!0), ze = l, W = d, Q || s.body.body.length && Tt(s.body.body[0])) {
|
|
713
715
|
for (l = s.id ? -1 : 0; l < s.oa.length; ++l)
|
|
714
|
-
if (d = 0 > l ? s.id : s.oa[l], (tr(d.name) ||
|
|
716
|
+
if (d = 0 > l ? s.id : s.oa[l], (tr(d.name) || yt(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= l)
|
|
715
717
|
for (var F = 0; F < l; ++F)
|
|
716
718
|
d.name === s.oa[F].name && r(d.start, "Argument name clash in strict mode");
|
|
717
719
|
}
|
|
718
720
|
return w(s, a ? "FunctionDeclaration" : "FunctionExpression");
|
|
719
721
|
}
|
|
720
|
-
function
|
|
722
|
+
function Nt(s, a, l) {
|
|
721
723
|
for (var d = [], F = !0; !O(s); ) {
|
|
722
724
|
if (F)
|
|
723
725
|
F = !1;
|
|
724
|
-
else if (
|
|
726
|
+
else if (U(ke), a && B.sb && O(s))
|
|
725
727
|
break;
|
|
726
728
|
d.push(l && S === ke ? null : X(!0));
|
|
727
729
|
}
|
|
@@ -729,7 +731,7 @@ var I, Po = function(e) {
|
|
|
729
731
|
}
|
|
730
732
|
function ce(s) {
|
|
731
733
|
var a = j();
|
|
732
|
-
return s && B.yb === "everywhere" && (s = !1), S === je ? (!s && (B.yb &&
|
|
734
|
+
return s && B.yb === "everywhere" && (s = !1), S === je ? (!s && (B.yb && fo(ne) || Q && tr(ne)) && g.slice(L, Re).indexOf("\\") === -1 && r(L, "The keyword '" + ne + "' is reserved"), a.name = ne) : s && S.l ? a.name = S.l : le(), Ge = !1, E(), w(a, "Identifier");
|
|
733
735
|
}
|
|
734
736
|
e.version = "0.5.0";
|
|
735
737
|
var B, g = "", Te, _t;
|
|
@@ -737,8 +739,8 @@ var I, Po = function(e) {
|
|
|
737
739
|
g = String(s), Te = g.length, B = a || {};
|
|
738
740
|
for (var l in Dn)
|
|
739
741
|
Object.prototype.hasOwnProperty.call(B, l) || (B[l] = Dn[l]);
|
|
740
|
-
for (_t = B.sourceFile, Be = 1, c = pe = 0, Ge = !0, h(), l = B.dc,
|
|
741
|
-
l = se(), s.body.push(l), a &&
|
|
742
|
+
for (_t = B.sourceFile, Be = 1, c = pe = 0, Ge = !0, h(), l = B.dc, Wt = be = c, B.C && (Vt = new i()), ze = Q = !1, W = [], v(), s = l || j(), a = !0, l || (s.body = []); S !== Lt; )
|
|
743
|
+
l = se(), s.body.push(l), a && Tt(l) && We(!0), a = !1;
|
|
742
744
|
return w(s, "Program");
|
|
743
745
|
};
|
|
744
746
|
var Dn = {
|
|
@@ -752,19 +754,19 @@ var I, Po = function(e) {
|
|
|
752
754
|
dc: null,
|
|
753
755
|
sourceFile: null,
|
|
754
756
|
vb: null
|
|
755
|
-
}, c = 0,
|
|
757
|
+
}, c = 0, L = 0, Re = 0, Mt, Ut, S, ne, Ge, Be, pe, Wt = 0, be = 0, Vt, ze, W, Q, no = [], Xe = {
|
|
756
758
|
type: "num"
|
|
757
759
|
}, xn = {
|
|
758
760
|
type: "regexp"
|
|
759
|
-
},
|
|
761
|
+
}, mt = {
|
|
760
762
|
type: "string"
|
|
761
763
|
}, je = {
|
|
762
764
|
type: "name"
|
|
763
765
|
}, Lt = {
|
|
764
766
|
type: "eof"
|
|
765
|
-
}, Wt = {
|
|
766
|
-
l: "break"
|
|
767
767
|
}, Ht = {
|
|
768
|
+
l: "break"
|
|
769
|
+
}, Kt = {
|
|
768
770
|
l: "case",
|
|
769
771
|
m: !0
|
|
770
772
|
}, In = {
|
|
@@ -783,31 +785,31 @@ var I, Po = function(e) {
|
|
|
783
785
|
m: !0
|
|
784
786
|
}, Pn = {
|
|
785
787
|
l: "finally"
|
|
786
|
-
},
|
|
788
|
+
}, Nn = {
|
|
787
789
|
l: "for",
|
|
788
790
|
W: !0
|
|
789
|
-
},
|
|
791
|
+
}, Gt = {
|
|
790
792
|
l: "function"
|
|
791
|
-
},
|
|
793
|
+
}, _n = {
|
|
792
794
|
l: "if"
|
|
793
|
-
},
|
|
795
|
+
}, Mn = {
|
|
794
796
|
l: "return",
|
|
795
797
|
m: !0
|
|
796
|
-
},
|
|
798
|
+
}, zt = {
|
|
797
799
|
l: "switch"
|
|
798
|
-
},
|
|
800
|
+
}, Un = {
|
|
799
801
|
l: "throw",
|
|
800
802
|
m: !0
|
|
801
|
-
},
|
|
803
|
+
}, Wn = {
|
|
802
804
|
l: "try"
|
|
803
|
-
}, zt = {
|
|
804
|
-
l: "var"
|
|
805
805
|
}, Xt = {
|
|
806
|
+
l: "var"
|
|
807
|
+
}, Jt = {
|
|
806
808
|
l: "while",
|
|
807
809
|
W: !0
|
|
808
|
-
},
|
|
810
|
+
}, Vn = {
|
|
809
811
|
l: "with"
|
|
810
|
-
},
|
|
812
|
+
}, Ln = {
|
|
811
813
|
l: "new",
|
|
812
814
|
m: !0
|
|
813
815
|
}, Hn = {
|
|
@@ -821,13 +823,13 @@ var I, Po = function(e) {
|
|
|
821
823
|
}, zn = {
|
|
822
824
|
l: "false",
|
|
823
825
|
$a: !1
|
|
824
|
-
},
|
|
826
|
+
}, gt = {
|
|
825
827
|
l: "in",
|
|
826
828
|
L: 7,
|
|
827
829
|
m: !0
|
|
828
|
-
},
|
|
829
|
-
break:
|
|
830
|
-
case:
|
|
830
|
+
}, ro = {
|
|
831
|
+
break: Ht,
|
|
832
|
+
case: Kt,
|
|
831
833
|
catch: In,
|
|
832
834
|
continue: Tn,
|
|
833
835
|
debugger: Rn,
|
|
@@ -835,21 +837,21 @@ var I, Po = function(e) {
|
|
|
835
837
|
do: On,
|
|
836
838
|
else: $n,
|
|
837
839
|
finally: Pn,
|
|
838
|
-
for:
|
|
839
|
-
function:
|
|
840
|
-
if:
|
|
841
|
-
return:
|
|
842
|
-
switch:
|
|
843
|
-
throw:
|
|
844
|
-
try:
|
|
845
|
-
var:
|
|
846
|
-
while:
|
|
847
|
-
with:
|
|
840
|
+
for: Nn,
|
|
841
|
+
function: Gt,
|
|
842
|
+
if: _n,
|
|
843
|
+
return: Mn,
|
|
844
|
+
switch: zt,
|
|
845
|
+
throw: Un,
|
|
846
|
+
try: Wn,
|
|
847
|
+
var: Xt,
|
|
848
|
+
while: Jt,
|
|
849
|
+
with: Vn,
|
|
848
850
|
null: Kn,
|
|
849
851
|
true: Gn,
|
|
850
852
|
false: zn,
|
|
851
|
-
new:
|
|
852
|
-
in:
|
|
853
|
+
new: Ln,
|
|
854
|
+
in: gt,
|
|
853
855
|
instanceof: {
|
|
854
856
|
l: "instanceof",
|
|
855
857
|
L: 7,
|
|
@@ -871,10 +873,10 @@ var I, Po = function(e) {
|
|
|
871
873
|
prefix: !0,
|
|
872
874
|
m: !0
|
|
873
875
|
}
|
|
874
|
-
},
|
|
876
|
+
}, Yt = {
|
|
875
877
|
type: "[",
|
|
876
878
|
m: !0
|
|
877
|
-
},
|
|
879
|
+
}, qt = {
|
|
878
880
|
type: "]"
|
|
879
881
|
}, Je = {
|
|
880
882
|
type: "{",
|
|
@@ -909,7 +911,7 @@ var I, Po = function(e) {
|
|
|
909
911
|
}, De = {
|
|
910
912
|
Cb: !0,
|
|
911
913
|
m: !0
|
|
912
|
-
},
|
|
914
|
+
}, oo = {
|
|
913
915
|
cc: !0,
|
|
914
916
|
prefix: !0,
|
|
915
917
|
$b: !0
|
|
@@ -922,40 +924,40 @@ var I, Po = function(e) {
|
|
|
922
924
|
}, er = {
|
|
923
925
|
L: 2,
|
|
924
926
|
m: !0
|
|
925
|
-
},
|
|
927
|
+
}, io = {
|
|
926
928
|
L: 3,
|
|
927
929
|
m: !0
|
|
928
|
-
},
|
|
930
|
+
}, so = {
|
|
929
931
|
L: 4,
|
|
930
932
|
m: !0
|
|
931
|
-
},
|
|
933
|
+
}, uo = {
|
|
932
934
|
L: 5,
|
|
933
935
|
m: !0
|
|
934
|
-
},
|
|
936
|
+
}, ao = {
|
|
935
937
|
L: 6,
|
|
936
938
|
m: !0
|
|
937
|
-
},
|
|
939
|
+
}, lo = {
|
|
938
940
|
L: 7,
|
|
939
941
|
m: !0
|
|
940
|
-
},
|
|
942
|
+
}, co = {
|
|
941
943
|
L: 8,
|
|
942
944
|
m: !0
|
|
943
|
-
},
|
|
945
|
+
}, po = {
|
|
944
946
|
L: 9,
|
|
945
947
|
prefix: !0,
|
|
946
948
|
m: !0
|
|
947
|
-
},
|
|
949
|
+
}, ho = {
|
|
948
950
|
L: 10,
|
|
949
951
|
m: !0
|
|
950
|
-
}, ho = o("class enum extends super const export import"), tr = o("implements interface let package private protected public static yield"), gt = o("eval arguments"), fo = 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"), mo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, nr = 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]"), go = 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]"), yt = /[\n\r\u2028\u2029]/, vt = /\r\n|[\n\r\u2028\u2029]/g, $e, qt = {
|
|
952
|
+
}, fo = o("class enum extends super const export import"), tr = o("implements interface let package private protected public static yield"), yt = o("eval arguments"), mo = 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"), go = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, nr = 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]"), yo = 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]"), vt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, $e, Zt = {
|
|
951
953
|
kind: "loop"
|
|
952
|
-
},
|
|
954
|
+
}, vo = {
|
|
953
955
|
kind: "switch"
|
|
954
956
|
};
|
|
955
|
-
},
|
|
956
|
-
|
|
957
|
+
}, un = un = typeof globalThis > "u" ? void 0 : globalThis;
|
|
958
|
+
No(un.j || (un.j = {}));
|
|
957
959
|
function f(e, t) {
|
|
958
|
-
typeof e == "string" && (e =
|
|
960
|
+
typeof e == "string" && (e = _e(e, "code"));
|
|
959
961
|
var n = e.constructor;
|
|
960
962
|
this.ya = function() {
|
|
961
963
|
return new n({
|
|
@@ -969,8 +971,8 @@ function f(e, t) {
|
|
|
969
971
|
var i, u;
|
|
970
972
|
for (u in this)
|
|
971
973
|
typeof this[u] == "function" && (i = u.match(e)) && (this.rb[i[1]] = this[u].bind(this));
|
|
972
|
-
this.N =
|
|
973
|
-
`), "polyfills"), this.ba = void 0,
|
|
974
|
+
this.N = ln(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
975
|
+
`), "polyfills"), this.ba = void 0, Bt(this.ra), i = new C(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new C(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
974
976
|
}
|
|
975
977
|
var or = {
|
|
976
978
|
C: !0,
|
|
@@ -995,13 +997,13 @@ var or = {
|
|
|
995
997
|
configurable: !1,
|
|
996
998
|
enumerable: !0,
|
|
997
999
|
writable: !0
|
|
998
|
-
},
|
|
1000
|
+
}, Dr = {
|
|
999
1001
|
STEP_ERROR: !0
|
|
1000
|
-
},
|
|
1002
|
+
}, Ue = {
|
|
1001
1003
|
SCOPE_REFERENCE: !0
|
|
1002
1004
|
}, it = {
|
|
1003
1005
|
VALUE_IN_DESCRIPTOR: !0
|
|
1004
|
-
},
|
|
1006
|
+
}, Ne = {
|
|
1005
1007
|
REGEXP_TIMEOUT: !0
|
|
1006
1008
|
}, sr = [], me = null, nt = null, Se = typeof globalThis > "u" ? void 0 : globalThis, _o = ["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();", "};"];
|
|
1007
1009
|
function hn(e) {
|
|
@@ -1012,37 +1014,37 @@ function rt(e) {
|
|
|
1012
1014
|
var t = e >>> 0;
|
|
1013
1015
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1014
1016
|
}
|
|
1015
|
-
function
|
|
1017
|
+
function Bt(e, t, n) {
|
|
1016
1018
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
1017
1019
|
for (var r in e)
|
|
1018
1020
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
1019
1021
|
var o = e[r];
|
|
1020
|
-
o && typeof o == "object" &&
|
|
1022
|
+
o && typeof o == "object" && Bt(o, t, n);
|
|
1021
1023
|
}
|
|
1022
1024
|
}
|
|
1023
1025
|
f.prototype.REGEXP_MODE = 2;
|
|
1024
1026
|
f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1025
1027
|
f.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
function
|
|
1028
|
+
T = f.prototype;
|
|
1029
|
+
T.P = !1;
|
|
1030
|
+
T.Ka = !1;
|
|
1031
|
+
T.Kb = 0;
|
|
1032
|
+
T.ic = 0;
|
|
1033
|
+
function _e(e, t) {
|
|
1032
1034
|
var n = {}, r;
|
|
1033
1035
|
for (r in or)
|
|
1034
1036
|
n[r] = or[r];
|
|
1035
1037
|
return n.sourceFile = t, Se.j.parse(e, n);
|
|
1036
1038
|
}
|
|
1037
|
-
|
|
1039
|
+
T.Jb = function(e) {
|
|
1038
1040
|
var t = this.o[0];
|
|
1039
1041
|
if (!t || t.node.type !== "Program")
|
|
1040
1042
|
throw Error("Expecting original AST to start with a Program node");
|
|
1041
|
-
if (typeof e == "string" && (e =
|
|
1043
|
+
if (typeof e == "string" && (e = _e(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1042
1044
|
throw Error("Expecting new AST to start with a Program node");
|
|
1043
1045
|
st(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1044
1046
|
};
|
|
1045
|
-
|
|
1047
|
+
T.lb = function() {
|
|
1046
1048
|
var e = this.o, t;
|
|
1047
1049
|
do {
|
|
1048
1050
|
var n = e[e.length - 1];
|
|
@@ -1054,8 +1056,8 @@ I.lb = function() {
|
|
|
1054
1056
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1055
1057
|
n = null;
|
|
1056
1058
|
else {
|
|
1057
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1058
|
-
var r = new
|
|
1059
|
+
this.ca.shift(), 0 <= n.interval && Tr(this, n, n.interval);
|
|
1060
|
+
var r = new C(n.node, n.scope);
|
|
1059
1061
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1060
1062
|
}
|
|
1061
1063
|
if (!n)
|
|
@@ -1067,7 +1069,7 @@ I.lb = function() {
|
|
|
1067
1069
|
try {
|
|
1068
1070
|
var i = this.rb[r.type](e, n, r);
|
|
1069
1071
|
} catch (u) {
|
|
1070
|
-
if (u !==
|
|
1072
|
+
if (u !== Dr)
|
|
1071
1073
|
throw this.value !== u && (this.value = void 0), u;
|
|
1072
1074
|
} finally {
|
|
1073
1075
|
nt = o;
|
|
@@ -1080,13 +1082,13 @@ I.lb = function() {
|
|
|
1080
1082
|
} while (!r.end && t > Date.now());
|
|
1081
1083
|
return !0;
|
|
1082
1084
|
};
|
|
1083
|
-
|
|
1085
|
+
T.Eb = function() {
|
|
1084
1086
|
for (; !this.za && this.lb(); )
|
|
1085
1087
|
;
|
|
1086
1088
|
return this.za;
|
|
1087
1089
|
};
|
|
1088
|
-
function
|
|
1089
|
-
e.g(t, "NaN", NaN, qe), e.g(t, "Infinity", 1 / 0, qe), e.g(t, "undefined", void 0, qe), e.g(t, "window", t, dn), e.g(t, "this", t, qe), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M), Uo(e, t),
|
|
1090
|
+
function Mo(e, t) {
|
|
1091
|
+
e.g(t, "NaN", NaN, qe), e.g(t, "Infinity", 1 / 0, qe), e.g(t, "undefined", void 0, qe), e.g(t, "window", t, dn), e.g(t, "this", t, qe), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M), Uo(e, t), Wo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Vo(e, t), Lo(e, t), Ho(e, t), Ko(e, t), Go(e, t), zo(e, t), Xo(e, t), Jo(e, t), Yo(e, t);
|
|
1090
1092
|
var n = e.i(function() {
|
|
1091
1093
|
throw EvalError("Can't happen");
|
|
1092
1094
|
}, !1);
|
|
@@ -1097,7 +1099,7 @@ function No(e, t) {
|
|
|
1097
1099
|
try {
|
|
1098
1100
|
return i(u);
|
|
1099
1101
|
} catch (p) {
|
|
1100
|
-
|
|
1102
|
+
k(e, e.Gb, p.message);
|
|
1101
1103
|
}
|
|
1102
1104
|
};
|
|
1103
1105
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
@@ -1111,7 +1113,7 @@ function No(e, t) {
|
|
|
1111
1113
|
ar(e, i);
|
|
1112
1114
|
}, e.g(t, "clearInterval", e.i(n, !1), y), 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);
|
|
1113
1115
|
}
|
|
1114
|
-
|
|
1116
|
+
T.Wb = 0;
|
|
1115
1117
|
function Uo(e, t) {
|
|
1116
1118
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1117
1119
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1119,36 +1121,36 @@ function Uo(e, t) {
|
|
|
1119
1121
|
u = u.split(/\s*,\s*/);
|
|
1120
1122
|
for (var p = 0; p < u.length; p++) {
|
|
1121
1123
|
var h = u[p];
|
|
1122
|
-
n.test(h) ||
|
|
1124
|
+
n.test(h) || k(e, e.T, "Invalid function argument: " + h);
|
|
1123
1125
|
}
|
|
1124
1126
|
u = u.join(", ");
|
|
1125
1127
|
}
|
|
1126
1128
|
try {
|
|
1127
|
-
var m =
|
|
1129
|
+
var m = _e("(function(" + u + ") {" + i + "})", "function" + e.Wb++);
|
|
1128
1130
|
} catch (v) {
|
|
1129
|
-
|
|
1131
|
+
k(e, e.T, "Invalid code: " + v.message);
|
|
1130
1132
|
}
|
|
1131
|
-
return m.body.length !== 1 &&
|
|
1133
|
+
return m.body.length !== 1 && k(e, e.T, "Invalid code in function body"), gn(e, m.body[0].la, e.N, "anonymous");
|
|
1132
1134
|
};
|
|
1133
1135
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1134
1136
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, Z), e.Z.H = "Function", r = function(o, i) {
|
|
1135
1137
|
var u = e.o[e.o.length - 1];
|
|
1136
|
-
u.U = this, u.B = o, u.F = [], i != null && (i instanceof D ? u.F =
|
|
1137
|
-
},
|
|
1138
|
+
u.U = this, u.B = o, u.F = [], i != null && (i instanceof D ? u.F = xr(e, i) : k(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
|
|
1139
|
+
}, G(e, e.O, "apply", r), r = function(o) {
|
|
1138
1140
|
var i = e.o[e.o.length - 1];
|
|
1139
1141
|
i.U = this, i.B = o, i.F = [];
|
|
1140
1142
|
for (var u = 1; u < arguments.length; u++)
|
|
1141
1143
|
i.F.push(arguments[u]);
|
|
1142
1144
|
i.eb = !1;
|
|
1143
|
-
},
|
|
1145
|
+
}, G(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() {
|
|
1144
1146
|
return String(this);
|
|
1145
|
-
},
|
|
1147
|
+
}, G(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1146
1148
|
return this.valueOf();
|
|
1147
|
-
},
|
|
1149
|
+
}, G(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1148
1150
|
}
|
|
1149
|
-
function
|
|
1151
|
+
function Wo(e, t) {
|
|
1150
1152
|
function n(o) {
|
|
1151
|
-
o != null ||
|
|
1153
|
+
o != null || k(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1152
1154
|
}
|
|
1153
1155
|
var r = function(o) {
|
|
1154
1156
|
if (o == null)
|
|
@@ -1164,11 +1166,11 @@ function Mo(e, t) {
|
|
|
1164
1166
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1165
1167
|
return n(o), o instanceof D && (o = o.h), fe(e, Object.keys(o));
|
|
1166
1168
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1167
|
-
return o === null ? e.s(null) : (o instanceof D ||
|
|
1169
|
+
return o === null ? e.s(null) : (o instanceof D || k(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1168
1170
|
}, e.g(e.v, "create", e.i(r, !1), y), 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) {
|
|
1169
|
-
return i = String(i), o instanceof D ||
|
|
1171
|
+
return i = String(i), o instanceof D || k(e, e.j, "Object.defineProperty called on non-object: " + o), u instanceof D || 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, it, u.h), o;
|
|
1170
1172
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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) {
|
|
1171
|
-
if (o instanceof D ||
|
|
1173
|
+
if (o instanceof D || k(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1172
1174
|
var u = Object.getOwnPropertyDescriptor(o.h, i), p = o.V[i];
|
|
1173
1175
|
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;
|
|
1174
1176
|
}
|
|
@@ -1178,24 +1180,24 @@ function Mo(e, t) {
|
|
|
1178
1180
|
return !!o && !o.preventExtensions;
|
|
1179
1181
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1180
1182
|
return o instanceof D && (o.preventExtensions = !0), o;
|
|
1181
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1183
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), G(e, e.v, "toString", D.prototype.toString), G(e, e.v, "toLocaleString", D.prototype.toString), G(e, e.v, "valueOf", D.prototype.valueOf), r = function(o) {
|
|
1182
1184
|
return n(this), this instanceof D ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1183
|
-
},
|
|
1185
|
+
}, G(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1184
1186
|
return n(this), this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1185
|
-
},
|
|
1187
|
+
}, G(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1186
1188
|
for (; ; ) {
|
|
1187
1189
|
if (o = ye(e, o), !o)
|
|
1188
1190
|
return !1;
|
|
1189
1191
|
if (o === this)
|
|
1190
1192
|
return !0;
|
|
1191
1193
|
}
|
|
1192
|
-
},
|
|
1194
|
+
}, G(e, e.v, "isPrototypeOf", r);
|
|
1193
1195
|
}
|
|
1194
1196
|
function Vo(e, t) {
|
|
1195
1197
|
var n = function(r) {
|
|
1196
|
-
var o = Ae(e) ? this :
|
|
1198
|
+
var o = Ae(e) ? this : Me(e), i = arguments[0];
|
|
1197
1199
|
if (arguments.length === 1 && typeof i == "number")
|
|
1198
|
-
isNaN(hn(i)) &&
|
|
1200
|
+
isNaN(hn(i)) && k(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1199
1201
|
else {
|
|
1200
1202
|
for (i = 0; i < arguments.length; i++)
|
|
1201
1203
|
o.h[i] = arguments[i];
|
|
@@ -1216,15 +1218,15 @@ function Lo(e, t) {
|
|
|
1216
1218
|
return r = arguments.length ? Se.String(r) : "", Ae(e) ? (this.data = r, this) : r;
|
|
1217
1219
|
};
|
|
1218
1220
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1219
|
-
|
|
1221
|
+
G(e, e.J, t[n], String.prototype[t[n]]);
|
|
1220
1222
|
n = function(r, o, i) {
|
|
1221
1223
|
o = e.R(o), i = e.R(i);
|
|
1222
1224
|
try {
|
|
1223
1225
|
return String(this).localeCompare(r, o, i);
|
|
1224
1226
|
} catch (u) {
|
|
1225
|
-
|
|
1227
|
+
k(e, e.D, "localeCompare: " + u.message);
|
|
1226
1228
|
}
|
|
1227
|
-
},
|
|
1229
|
+
}, G(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1228
1230
|
var u = String(this);
|
|
1229
1231
|
if (o = o ? Number(o) : void 0, z(e, r, e.I) && (r = r.data, Qe(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1230
1232
|
if (me)
|
|
@@ -1232,7 +1234,7 @@ function Lo(e, t) {
|
|
|
1232
1234
|
string: u,
|
|
1233
1235
|
separator: r,
|
|
1234
1236
|
limit: o
|
|
1235
|
-
}, r, i), r !==
|
|
1237
|
+
}, r, i), r !== Ne && i(fe(e, r));
|
|
1236
1238
|
else {
|
|
1237
1239
|
var p = e.ha(), h = et(e, r, p, i);
|
|
1238
1240
|
p.onmessage = function(m) {
|
|
@@ -1249,7 +1251,7 @@ function Lo(e, t) {
|
|
|
1249
1251
|
r = Ze(e, "string.match(regexp)", {
|
|
1250
1252
|
string: i,
|
|
1251
1253
|
regexp: r
|
|
1252
|
-
}, r, o), r !==
|
|
1254
|
+
}, r, o), r !== Ne && o(r && fe(e, r));
|
|
1253
1255
|
else {
|
|
1254
1256
|
var u = e.ha(), p = et(e, r, u, o);
|
|
1255
1257
|
u.onmessage = function(h) {
|
|
@@ -1265,7 +1267,7 @@ function Lo(e, t) {
|
|
|
1265
1267
|
r = Ze(e, "string.search(regexp)", {
|
|
1266
1268
|
string: i,
|
|
1267
1269
|
regexp: r
|
|
1268
|
-
}, r, o), r !==
|
|
1270
|
+
}, r, o), r !== Ne && o(r);
|
|
1269
1271
|
else {
|
|
1270
1272
|
var u = e.ha(), p = et(e, r, u, o);
|
|
1271
1273
|
u.onmessage = function(h) {
|
|
@@ -1282,7 +1284,7 @@ function Lo(e, t) {
|
|
|
1282
1284
|
string: u,
|
|
1283
1285
|
substr: r,
|
|
1284
1286
|
newSubstr: o
|
|
1285
|
-
}, r, i), r !==
|
|
1287
|
+
}, r, i), r !== Ne && i(r);
|
|
1286
1288
|
else {
|
|
1287
1289
|
var p = e.ha(), h = et(e, r, p, i);
|
|
1288
1290
|
p.onmessage = function(m) {
|
|
@@ -1294,12 +1296,12 @@ function Lo(e, t) {
|
|
|
1294
1296
|
i(u.replace(r, o));
|
|
1295
1297
|
}, tt(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;", "};", "})();", "");
|
|
1296
1298
|
}
|
|
1297
|
-
function
|
|
1299
|
+
function Ho(e, t) {
|
|
1298
1300
|
e.mb = e.i(function(n) {
|
|
1299
1301
|
return n = Se.Boolean(n), Ae(e) ? (this.data = n, this) : n;
|
|
1300
1302
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1301
1303
|
}
|
|
1302
|
-
function
|
|
1304
|
+
function Ko(e, t) {
|
|
1303
1305
|
var n = function(r) {
|
|
1304
1306
|
return r = arguments.length ? Se.Number(r) : 0, Ae(e) ? (this.data = r, this) : r;
|
|
1305
1307
|
};
|
|
@@ -1309,36 +1311,36 @@ function Ho(e, t) {
|
|
|
1309
1311
|
try {
|
|
1310
1312
|
return Number(this).toExponential(r);
|
|
1311
1313
|
} catch (o) {
|
|
1312
|
-
|
|
1314
|
+
k(e, e.D, o.message);
|
|
1313
1315
|
}
|
|
1314
|
-
},
|
|
1316
|
+
}, G(e, e.aa, "toExponential", n), n = function(r) {
|
|
1315
1317
|
try {
|
|
1316
1318
|
return Number(this).toFixed(r);
|
|
1317
1319
|
} catch (o) {
|
|
1318
|
-
|
|
1320
|
+
k(e, e.D, o.message);
|
|
1319
1321
|
}
|
|
1320
|
-
},
|
|
1322
|
+
}, G(e, e.aa, "toFixed", n), n = function(r) {
|
|
1321
1323
|
try {
|
|
1322
1324
|
return Number(this).toPrecision(r);
|
|
1323
1325
|
} catch (o) {
|
|
1324
|
-
|
|
1326
|
+
k(e, e.D, o.message);
|
|
1325
1327
|
}
|
|
1326
|
-
},
|
|
1328
|
+
}, G(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1327
1329
|
try {
|
|
1328
1330
|
return Number(this).toString(r);
|
|
1329
1331
|
} catch (o) {
|
|
1330
|
-
|
|
1332
|
+
k(e, e.D, o.message);
|
|
1331
1333
|
}
|
|
1332
|
-
},
|
|
1334
|
+
}, G(e, e.aa, "toString", n), n = function(r, o) {
|
|
1333
1335
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1334
1336
|
try {
|
|
1335
1337
|
return Number(this).toLocaleString(r, o);
|
|
1336
1338
|
} catch (i) {
|
|
1337
|
-
|
|
1339
|
+
k(e, e.D, "toLocaleString: " + i.message);
|
|
1338
1340
|
}
|
|
1339
|
-
},
|
|
1341
|
+
}, G(e, e.aa, "toLocaleString", n);
|
|
1340
1342
|
}
|
|
1341
|
-
function
|
|
1343
|
+
function Go(e, t) {
|
|
1342
1344
|
var n = function(o, i) {
|
|
1343
1345
|
if (!Ae(e))
|
|
1344
1346
|
return Se.Date();
|
|
@@ -1350,14 +1352,14 @@ function Ko(e, t) {
|
|
|
1350
1352
|
n = function(o) {
|
|
1351
1353
|
return function(i) {
|
|
1352
1354
|
var u = this.data;
|
|
1353
|
-
u instanceof Date ||
|
|
1355
|
+
u instanceof Date || k(e, e.j, o + " not called on a Date");
|
|
1354
1356
|
for (var p = [], h = 0; h < arguments.length; h++)
|
|
1355
1357
|
p[h] = e.R(arguments[h]);
|
|
1356
1358
|
return u[o].apply(u, p);
|
|
1357
1359
|
};
|
|
1358
|
-
}(t[r]),
|
|
1360
|
+
}(t[r]), G(e, e.$, t[r], n);
|
|
1359
1361
|
}
|
|
1360
|
-
function
|
|
1362
|
+
function zo(e, t) {
|
|
1361
1363
|
var n = function(r, o) {
|
|
1362
1364
|
if (Ae(e))
|
|
1363
1365
|
var i = this;
|
|
@@ -1366,19 +1368,19 @@ function Go(e, t) {
|
|
|
1366
1368
|
return r;
|
|
1367
1369
|
i = e.s(e.Ma);
|
|
1368
1370
|
}
|
|
1369
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1371
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || k(e, e.T, "Invalid regexp flag: " + o);
|
|
1370
1372
|
try {
|
|
1371
1373
|
var u = new Se.RegExp(r, o);
|
|
1372
1374
|
} catch (p) {
|
|
1373
|
-
|
|
1375
|
+
k(e, e.T, p.message);
|
|
1374
1376
|
}
|
|
1375
1377
|
return fn(e, i, u), i;
|
|
1376
1378
|
};
|
|
1377
1379
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, Z), e.g(e.I.h.prototype, "ignoreCase", void 0, Z), e.g(e.I.h.prototype, "multiline", void 0, Z), e.g(e.I.h.prototype, "source", "(?:)", Z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1378
1380
|
function i(v) {
|
|
1379
1381
|
if (v) {
|
|
1380
|
-
var
|
|
1381
|
-
return e.g(
|
|
1382
|
+
var A = fe(e, v);
|
|
1383
|
+
return e.g(A, "index", v.index), e.g(A, "input", v.input), A;
|
|
1382
1384
|
}
|
|
1383
1385
|
return null;
|
|
1384
1386
|
}
|
|
@@ -1388,7 +1390,7 @@ function Go(e, t) {
|
|
|
1388
1390
|
r = Ze(e, "regexp.exec(string)", {
|
|
1389
1391
|
string: r,
|
|
1390
1392
|
regexp: u
|
|
1391
|
-
}, u, o), r !==
|
|
1393
|
+
}, u, o), r !== Ne && (e.g(this, "lastIndex", u.lastIndex), o(i(r)));
|
|
1392
1394
|
else {
|
|
1393
1395
|
var p = e.ha(), h = et(e, u, p, o), m = this;
|
|
1394
1396
|
p.onmessage = function(v) {
|
|
@@ -1399,20 +1401,20 @@ function Go(e, t) {
|
|
|
1399
1401
|
r = u.exec(r), e.g(this, "lastIndex", u.lastIndex), o(i(r));
|
|
1400
1402
|
}, tt(e, e.I, "exec", n);
|
|
1401
1403
|
}
|
|
1402
|
-
function
|
|
1404
|
+
function Xo(e, t) {
|
|
1403
1405
|
function n(r) {
|
|
1404
1406
|
var o = e.i(function(i) {
|
|
1405
1407
|
var u = Ae(e) ? this : e.Aa(o);
|
|
1406
|
-
return
|
|
1408
|
+
return an(e, u, i), u;
|
|
1407
1409
|
}, !0);
|
|
1408
1410
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1409
1411
|
}
|
|
1410
1412
|
e.D = e.i(function(r) {
|
|
1411
1413
|
var o = Ae(e) ? this : e.Aa(e.D);
|
|
1412
|
-
return
|
|
1414
|
+
return an(e, o, r), o;
|
|
1413
1415
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1414
1416
|
}
|
|
1415
|
-
function
|
|
1417
|
+
function Jo(e, t) {
|
|
1416
1418
|
var n = e.s(e.M);
|
|
1417
1419
|
e.g(t, "Math", n, y);
|
|
1418
1420
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1421,23 +1423,23 @@ function Xo(e, t) {
|
|
|
1421
1423
|
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++)
|
|
1422
1424
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1423
1425
|
}
|
|
1424
|
-
function
|
|
1426
|
+
function Yo(e, t) {
|
|
1425
1427
|
var n = e.s(e.M);
|
|
1426
1428
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1427
1429
|
try {
|
|
1428
1430
|
var o = JSON.parse(String(r));
|
|
1429
1431
|
} catch (i) {
|
|
1430
|
-
|
|
1432
|
+
k(e, e.T, i.message);
|
|
1431
1433
|
}
|
|
1432
1434
|
return e.Ia(o);
|
|
1433
1435
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1434
|
-
o && o.H === "Function" ?
|
|
1436
|
+
o && o.H === "Function" ? k(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = xr(e, o), o = o.filter(function(p) {
|
|
1435
1437
|
return typeof p == "string" || typeof p == "number";
|
|
1436
1438
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1437
1439
|
try {
|
|
1438
1440
|
var u = JSON.stringify(r, o, i);
|
|
1439
1441
|
} catch (p) {
|
|
1440
|
-
|
|
1442
|
+
k(e, e.j, p.message);
|
|
1441
1443
|
}
|
|
1442
1444
|
return u;
|
|
1443
1445
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1457,7 +1459,7 @@ function z(e, t, n) {
|
|
|
1457
1459
|
function fn(e, t, n) {
|
|
1458
1460
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, Z), e.g(t, "global", n.global, Z), e.g(t, "ignoreCase", n.ignoreCase, Z), e.g(t, "multiline", n.multiline, Z);
|
|
1459
1461
|
}
|
|
1460
|
-
function
|
|
1462
|
+
function an(e, t, n) {
|
|
1461
1463
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1462
1464
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1463
1465
|
var o = e.o[r], i = o.node;
|
|
@@ -1474,7 +1476,7 @@ function un(e, t, n) {
|
|
|
1474
1476
|
}
|
|
1475
1477
|
e.g(t, "stack", i.trim(), y);
|
|
1476
1478
|
}
|
|
1477
|
-
|
|
1479
|
+
T.ha = function() {
|
|
1478
1480
|
var e = this.ha.Mb;
|
|
1479
1481
|
return e || (e = new Blob([_o.join(`
|
|
1480
1482
|
`)], {
|
|
@@ -1488,9 +1490,9 @@ function Ze(e, t, n, r, o) {
|
|
|
1488
1490
|
try {
|
|
1489
1491
|
return me.runInNewContext(t, n, i);
|
|
1490
1492
|
} catch {
|
|
1491
|
-
o(null),
|
|
1493
|
+
o(null), k(e, e.D, "RegExp Timeout: " + r);
|
|
1492
1494
|
}
|
|
1493
|
-
return
|
|
1495
|
+
return Ne;
|
|
1494
1496
|
}
|
|
1495
1497
|
function Qe(e, t, n) {
|
|
1496
1498
|
if (e.REGEXP_MODE === 0)
|
|
@@ -1509,26 +1511,26 @@ function Qe(e, t, n) {
|
|
|
1509
1511
|
r = !!me;
|
|
1510
1512
|
} else
|
|
1511
1513
|
r = !1;
|
|
1512
|
-
r || (n(null),
|
|
1514
|
+
r || (n(null), k(e, e.D, "Regular expressions not supported: " + t));
|
|
1513
1515
|
}
|
|
1514
1516
|
function et(e, t, n, r) {
|
|
1515
1517
|
return setTimeout(function() {
|
|
1516
1518
|
n.terminate(), r(null);
|
|
1517
1519
|
try {
|
|
1518
|
-
|
|
1520
|
+
k(e, e.D, "RegExp Timeout: " + t);
|
|
1519
1521
|
} catch {
|
|
1520
1522
|
}
|
|
1521
1523
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1522
1524
|
}
|
|
1523
|
-
|
|
1525
|
+
T.Aa = function(e) {
|
|
1524
1526
|
return this.s(e && e.h.prototype);
|
|
1525
1527
|
};
|
|
1526
|
-
|
|
1528
|
+
T.s = function(e) {
|
|
1527
1529
|
if (typeof e != "object")
|
|
1528
1530
|
throw Error("Non object prototype");
|
|
1529
1531
|
return e = new D(e), z(this, e, this.D) && (e.H = "Error"), e;
|
|
1530
1532
|
};
|
|
1531
|
-
function
|
|
1533
|
+
function Me(e) {
|
|
1532
1534
|
var t = e.s(e.La);
|
|
1533
1535
|
return e.g(t, "length", 0, {
|
|
1534
1536
|
configurable: !1,
|
|
@@ -1544,14 +1546,14 @@ function gn(e, t, n, r) {
|
|
|
1544
1546
|
var o = mn(e, t.oa.length, !0);
|
|
1545
1547
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", Z), o;
|
|
1546
1548
|
}
|
|
1547
|
-
|
|
1549
|
+
T.i = function(e, t) {
|
|
1548
1550
|
return t = mn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, Z), t;
|
|
1549
1551
|
};
|
|
1550
|
-
|
|
1552
|
+
T.ub = function(e) {
|
|
1551
1553
|
var t = mn(this, e.length, !0);
|
|
1552
1554
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, Z), t;
|
|
1553
1555
|
};
|
|
1554
|
-
|
|
1556
|
+
T.Ia = function(e) {
|
|
1555
1557
|
if (e instanceof D)
|
|
1556
1558
|
throw Error("Object is already pseudo");
|
|
1557
1559
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1572,7 +1574,7 @@ I.Ia = function(e) {
|
|
|
1572
1574
|
}, !!t);
|
|
1573
1575
|
}
|
|
1574
1576
|
if (Array.isArray(e)) {
|
|
1575
|
-
t =
|
|
1577
|
+
t = Me(this);
|
|
1576
1578
|
for (var r = 0; r < e.length; r++)
|
|
1577
1579
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1578
1580
|
return t;
|
|
@@ -1582,7 +1584,7 @@ I.Ia = function(e) {
|
|
|
1582
1584
|
this.g(t, r, this.Ia(e[r]));
|
|
1583
1585
|
return t;
|
|
1584
1586
|
};
|
|
1585
|
-
|
|
1587
|
+
T.R = function(e, t) {
|
|
1586
1588
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1587
1589
|
return e;
|
|
1588
1590
|
if (!(e instanceof D))
|
|
@@ -1601,7 +1603,7 @@ I.R = function(e, t) {
|
|
|
1601
1603
|
if (t.hb.push(e), z(this, e, this.qa)) {
|
|
1602
1604
|
n = [], t.Sa.push(n);
|
|
1603
1605
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1604
|
-
|
|
1606
|
+
Dt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1605
1607
|
} else
|
|
1606
1608
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1607
1609
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1613,11 +1615,11 @@ I.R = function(e, t) {
|
|
|
1613
1615
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1614
1616
|
};
|
|
1615
1617
|
function fe(e, t) {
|
|
1616
|
-
for (var n =
|
|
1618
|
+
for (var n = Me(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1617
1619
|
e.g(n, r[o], t[r[o]]);
|
|
1618
1620
|
return n;
|
|
1619
1621
|
}
|
|
1620
|
-
function
|
|
1622
|
+
function xr(e, t) {
|
|
1621
1623
|
var n = [], r;
|
|
1622
1624
|
for (r in t.h)
|
|
1623
1625
|
n[r] = e.G(t, r);
|
|
@@ -1634,10 +1636,10 @@ function ye(e, t) {
|
|
|
1634
1636
|
}
|
|
1635
1637
|
return t ? t.xa : null;
|
|
1636
1638
|
}
|
|
1637
|
-
|
|
1639
|
+
T.G = function(e, t) {
|
|
1638
1640
|
if (this.P)
|
|
1639
1641
|
throw Error("Getter not supported in that context");
|
|
1640
|
-
if (t = String(t), e != null ||
|
|
1642
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof D))
|
|
1641
1643
|
throw TypeError("Expecting native value or pseudo object");
|
|
1642
1644
|
if (t === "length") {
|
|
1643
1645
|
if (z(this, e, this.J))
|
|
@@ -1652,7 +1654,7 @@ I.G = function(e, t) {
|
|
|
1652
1654
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1653
1655
|
while (e = ye(this, e));
|
|
1654
1656
|
};
|
|
1655
|
-
function
|
|
1657
|
+
function Dt(e, t, n) {
|
|
1656
1658
|
if (!(t instanceof D))
|
|
1657
1659
|
throw TypeError("Primitive data type has no properties");
|
|
1658
1660
|
if (n = String(n), n === "length" && z(e, t, e.J))
|
|
@@ -1668,18 +1670,18 @@ function Bt(e, t, n) {
|
|
|
1668
1670
|
while (t = ye(e, t));
|
|
1669
1671
|
return !1;
|
|
1670
1672
|
}
|
|
1671
|
-
|
|
1673
|
+
T.g = function(e, t, n, r) {
|
|
1672
1674
|
if (this.Ka)
|
|
1673
1675
|
throw Error("Setter not supported in that context");
|
|
1674
|
-
if (t = String(t), e != null ||
|
|
1676
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof D))
|
|
1675
1677
|
throw TypeError("Expecting native value or pseudo object");
|
|
1676
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1678
|
+
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");
|
|
1677
1679
|
var o = !this.o || yn(this).S;
|
|
1678
1680
|
if (e instanceof D) {
|
|
1679
1681
|
if (z(this, e, this.J)) {
|
|
1680
1682
|
var i = rt(t);
|
|
1681
1683
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1682
|
-
o &&
|
|
1684
|
+
o && k(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1683
1685
|
return;
|
|
1684
1686
|
}
|
|
1685
1687
|
}
|
|
@@ -1690,7 +1692,7 @@ I.g = function(e, t, n, r) {
|
|
|
1690
1692
|
return;
|
|
1691
1693
|
n = r.value;
|
|
1692
1694
|
}
|
|
1693
|
-
if (n = hn(n), isNaN(n) &&
|
|
1695
|
+
if (n = hn(n), isNaN(n) && k(this, this.ob, "Invalid array length"), n < i)
|
|
1694
1696
|
for (u in e.h) {
|
|
1695
1697
|
var u = rt(u);
|
|
1696
1698
|
!isNaN(u) && n <= u && delete e.h[u];
|
|
@@ -1703,7 +1705,7 @@ I.g = function(e, t, n, r) {
|
|
|
1703
1705
|
try {
|
|
1704
1706
|
Object.defineProperty(e.h, t, o);
|
|
1705
1707
|
} catch {
|
|
1706
|
-
|
|
1708
|
+
k(this, this.j, "Cannot redefine property: " + t);
|
|
1707
1709
|
}
|
|
1708
1710
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1709
1711
|
} else {
|
|
@@ -1717,26 +1719,26 @@ I.g = function(e, t, n, r) {
|
|
|
1717
1719
|
if (r.Y && r.Y[t])
|
|
1718
1720
|
return this.Ka = !0, r.Y[t];
|
|
1719
1721
|
if (r.V && r.V[t])
|
|
1720
|
-
o &&
|
|
1722
|
+
o && k(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1721
1723
|
else
|
|
1722
1724
|
try {
|
|
1723
1725
|
e.h[t] = n;
|
|
1724
1726
|
} catch {
|
|
1725
|
-
o &&
|
|
1727
|
+
o && k(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1726
1728
|
}
|
|
1727
1729
|
}
|
|
1728
1730
|
else
|
|
1729
|
-
o &&
|
|
1731
|
+
o && k(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1730
1732
|
} else
|
|
1731
|
-
o &&
|
|
1733
|
+
o && k(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1732
1734
|
};
|
|
1733
|
-
|
|
1735
|
+
T.g.ac = function() {
|
|
1734
1736
|
throw Error("Placeholder getter");
|
|
1735
1737
|
};
|
|
1736
|
-
|
|
1738
|
+
T.g.bc = function() {
|
|
1737
1739
|
throw Error("Placeholder setter");
|
|
1738
1740
|
};
|
|
1739
|
-
function
|
|
1741
|
+
function G(e, t, n, r) {
|
|
1740
1742
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1741
1743
|
}
|
|
1742
1744
|
function tt(e, t, n, r) {
|
|
@@ -1747,7 +1749,7 @@ function yn(e) {
|
|
|
1747
1749
|
throw Error("No scope found");
|
|
1748
1750
|
return e;
|
|
1749
1751
|
}
|
|
1750
|
-
function
|
|
1752
|
+
function ln(e, t, n) {
|
|
1751
1753
|
var r = !1;
|
|
1752
1754
|
if (n && n.S)
|
|
1753
1755
|
r = !0;
|
|
@@ -1755,12 +1757,12 @@ function an(e, t, n) {
|
|
|
1755
1757
|
var o = t.body && t.body[0];
|
|
1756
1758
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1757
1759
|
}
|
|
1758
|
-
return o = e.s(null), r = new
|
|
1760
|
+
return o = e.s(null), r = new Rr(n, r, o), n || Mo(e, r.object), st(e, t, r), r;
|
|
1759
1761
|
}
|
|
1760
1762
|
function vn(e, t, n) {
|
|
1761
1763
|
if (!t)
|
|
1762
1764
|
throw Error("parentScope required");
|
|
1763
|
-
return e = n || e.s(null), new
|
|
1765
|
+
return e = n || e.s(null), new Rr(t, t.S, e);
|
|
1764
1766
|
}
|
|
1765
1767
|
function An(e, t) {
|
|
1766
1768
|
for (var n = yn(e); n && n !== e.N; ) {
|
|
@@ -1768,25 +1770,25 @@ function An(e, t) {
|
|
|
1768
1770
|
return n.object.h[t];
|
|
1769
1771
|
n = n.Va;
|
|
1770
1772
|
}
|
|
1771
|
-
if (n === e.N &&
|
|
1773
|
+
if (n === e.N && Dt(e, n.object, t))
|
|
1772
1774
|
return e.G(n.object, t);
|
|
1773
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1775
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || k(e, e.pb, t + " is not defined");
|
|
1774
1776
|
}
|
|
1775
|
-
function
|
|
1777
|
+
function Ir(e, t, n) {
|
|
1776
1778
|
for (var r = yn(e), o = r.S; r && r !== e.N; ) {
|
|
1777
1779
|
if (t in r.object.h) {
|
|
1778
1780
|
try {
|
|
1779
1781
|
r.object.h[t] = n;
|
|
1780
1782
|
} catch {
|
|
1781
|
-
o &&
|
|
1783
|
+
o && k(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1782
1784
|
}
|
|
1783
1785
|
return;
|
|
1784
1786
|
}
|
|
1785
1787
|
r = r.Va;
|
|
1786
1788
|
}
|
|
1787
|
-
if (r === e.N && (!o ||
|
|
1789
|
+
if (r === e.N && (!o || Dt(e, r.object, t)))
|
|
1788
1790
|
return e.g(r.object, t, n);
|
|
1789
|
-
|
|
1791
|
+
k(e, e.pb, t + " is not defined");
|
|
1790
1792
|
}
|
|
1791
1793
|
function st(e, t, n) {
|
|
1792
1794
|
if (t.jb)
|
|
@@ -1841,15 +1843,15 @@ function Ae(e) {
|
|
|
1841
1843
|
return e.o[e.o.length - 1].isConstructor;
|
|
1842
1844
|
}
|
|
1843
1845
|
function Cn(e, t) {
|
|
1844
|
-
return t[0] ===
|
|
1846
|
+
return t[0] === Ue ? An(e, t[1]) : e.G(t[0], t[1]);
|
|
1845
1847
|
}
|
|
1846
1848
|
function bn(e, t, n) {
|
|
1847
|
-
return t[0] ===
|
|
1849
|
+
return t[0] === Ue ? Ir(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1848
1850
|
}
|
|
1849
|
-
function
|
|
1850
|
-
throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t),
|
|
1851
|
+
function k(e, t, n) {
|
|
1852
|
+
throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t), an(e, t, n)), lt(e, 4, t), Dr) : n === void 0 ? t : n;
|
|
1851
1853
|
}
|
|
1852
|
-
function
|
|
1854
|
+
function lt(e, t, n, r) {
|
|
1853
1855
|
if (t === 0)
|
|
1854
1856
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1855
1857
|
var o = e.o;
|
|
@@ -1934,15 +1936,15 @@ function ur(e, t, n) {
|
|
|
1934
1936
|
u.type = "CallExpression", r = r.scope;
|
|
1935
1937
|
} else {
|
|
1936
1938
|
try {
|
|
1937
|
-
var h =
|
|
1939
|
+
var h = _e(String(i), "taskCode" + e.ic++);
|
|
1938
1940
|
} catch (m) {
|
|
1939
|
-
|
|
1941
|
+
k(e, e.T, "Invalid code: " + m.message);
|
|
1940
1942
|
}
|
|
1941
|
-
u.type = "EvalProgram_", u.body = h.body, r = r.node.arguments[0],
|
|
1943
|
+
u.type = "EvalProgram_", u.body = h.body, r = r.node.arguments[0], Bt(u, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1942
1944
|
}
|
|
1943
|
-
return t = new
|
|
1945
|
+
return t = new qo(p, o, r, u, t ? n : -1), Tr(e, t, n), t.Db;
|
|
1944
1946
|
}
|
|
1945
|
-
function
|
|
1947
|
+
function Tr(e, t, n) {
|
|
1946
1948
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1947
1949
|
return r.time - o.time;
|
|
1948
1950
|
});
|
|
@@ -1954,46 +1956,46 @@ function ar(e, t) {
|
|
|
1954
1956
|
break;
|
|
1955
1957
|
}
|
|
1956
1958
|
}
|
|
1957
|
-
function
|
|
1959
|
+
function ct(e, t, n) {
|
|
1958
1960
|
if (!e.P)
|
|
1959
1961
|
throw Error("Unexpected call to createGetter");
|
|
1960
1962
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1961
1963
|
var r = e.ya();
|
|
1962
|
-
return r.type = "CallExpression", e = new
|
|
1964
|
+
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1963
1965
|
}
|
|
1964
1966
|
function kn(e, t, n, r) {
|
|
1965
1967
|
if (!e.Ka)
|
|
1966
1968
|
throw Error("Unexpected call to createSetter");
|
|
1967
1969
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1968
1970
|
var o = e.ya();
|
|
1969
|
-
return o.type = "CallExpression", e = new
|
|
1971
|
+
return o.type = "CallExpression", e = new C(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1970
1972
|
}
|
|
1971
|
-
function
|
|
1973
|
+
function tn(e, t) {
|
|
1972
1974
|
return t == null ? e.Na : t instanceof D ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1973
1975
|
}
|
|
1974
|
-
|
|
1976
|
+
T.Xb = function() {
|
|
1975
1977
|
return this.N;
|
|
1976
1978
|
};
|
|
1977
|
-
|
|
1979
|
+
T.Yb = function() {
|
|
1978
1980
|
return this.o;
|
|
1979
1981
|
};
|
|
1980
|
-
|
|
1982
|
+
T.ec = function(e) {
|
|
1981
1983
|
this.o = e;
|
|
1982
1984
|
};
|
|
1983
|
-
function
|
|
1985
|
+
function C(e, t) {
|
|
1984
1986
|
this.node = e, this.scope = t;
|
|
1985
1987
|
}
|
|
1986
|
-
function
|
|
1988
|
+
function Rr(e, t, n) {
|
|
1987
1989
|
this.Va = e, this.S = t, this.object = n;
|
|
1988
1990
|
}
|
|
1989
1991
|
function D(e) {
|
|
1990
1992
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1991
1993
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1994
|
+
T = D.prototype;
|
|
1995
|
+
T.xa = null;
|
|
1996
|
+
T.H = "Object";
|
|
1997
|
+
T.data = null;
|
|
1998
|
+
T.toString = function() {
|
|
1997
1999
|
if (!nt)
|
|
1998
2000
|
return "[object Interpreter.Object]";
|
|
1999
2001
|
if (!(this instanceof D))
|
|
@@ -2041,28 +2043,28 @@ I.toString = function() {
|
|
|
2041
2043
|
}
|
|
2042
2044
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2043
2045
|
};
|
|
2044
|
-
|
|
2046
|
+
T.valueOf = function() {
|
|
2045
2047
|
return !nt || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2046
2048
|
};
|
|
2047
|
-
function
|
|
2048
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2049
|
+
function qo(e, t, n, r, o) {
|
|
2050
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Zo, this.time = 0;
|
|
2049
2051
|
}
|
|
2050
|
-
var
|
|
2052
|
+
var Zo = 0;
|
|
2051
2053
|
f.prototype.stepArrayExpression = function(e, t, n) {
|
|
2052
2054
|
n = n.elements;
|
|
2053
2055
|
var r = t.A || 0;
|
|
2054
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2056
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Me(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2055
2057
|
if (n[r])
|
|
2056
|
-
return t.A = r, new
|
|
2058
|
+
return t.A = r, new C(n[r], t.scope);
|
|
2057
2059
|
r++;
|
|
2058
2060
|
}
|
|
2059
2061
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2060
2062
|
};
|
|
2061
2063
|
f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2062
2064
|
if (!t.ja)
|
|
2063
|
-
return t.ja = !0, t = new
|
|
2065
|
+
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2064
2066
|
if (!t.Da)
|
|
2065
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0,
|
|
2067
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ct(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2066
2068
|
if (t.ta)
|
|
2067
2069
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2068
2070
|
else {
|
|
@@ -2114,9 +2116,9 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2114
2116
|
};
|
|
2115
2117
|
f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2116
2118
|
if (!t.ja)
|
|
2117
|
-
return t.ja = !0, new
|
|
2119
|
+
return t.ja = !0, new C(n.left, t.scope);
|
|
2118
2120
|
if (!t.Da)
|
|
2119
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2121
|
+
return t.Da = !0, t.ma = t.value, new C(n.right, t.scope);
|
|
2120
2122
|
e.pop();
|
|
2121
2123
|
var r = t.ma;
|
|
2122
2124
|
switch (t = t.value, n.operator) {
|
|
@@ -2178,10 +2180,10 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2178
2180
|
n = r >>> t;
|
|
2179
2181
|
break;
|
|
2180
2182
|
case "in":
|
|
2181
|
-
t instanceof D ||
|
|
2183
|
+
t instanceof D || k(this, this.j, "'in' expects an object, not '" + t + "'"), n = Dt(this, t, r);
|
|
2182
2184
|
break;
|
|
2183
2185
|
case "instanceof":
|
|
2184
|
-
z(this, t, this.O) ||
|
|
2186
|
+
z(this, t, this.O) || k(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof D ? z(this, r, t) : !1;
|
|
2185
2187
|
break;
|
|
2186
2188
|
default:
|
|
2187
2189
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2191,35 +2193,35 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2191
2193
|
f.prototype.stepBlockStatement = function(e, t, n) {
|
|
2192
2194
|
var r = t.A || 0;
|
|
2193
2195
|
if (n = n.body[r])
|
|
2194
|
-
return t.A = r + 1, new
|
|
2196
|
+
return t.A = r + 1, new C(n, t.scope);
|
|
2195
2197
|
e.pop();
|
|
2196
2198
|
};
|
|
2197
2199
|
f.prototype.stepBreakStatement = function(e, t, n) {
|
|
2198
|
-
|
|
2200
|
+
lt(this, 1, void 0, n.label && n.label.name);
|
|
2199
2201
|
};
|
|
2200
2202
|
f.prototype.Hb = 0;
|
|
2201
2203
|
f.prototype.stepCallExpression = function(e, t, n) {
|
|
2202
2204
|
if (!t.ia) {
|
|
2203
2205
|
t.ia = 1;
|
|
2204
|
-
var r = new
|
|
2206
|
+
var r = new C(n.callee, t.scope);
|
|
2205
2207
|
return r.sa = !0, r;
|
|
2206
2208
|
}
|
|
2207
2209
|
if (t.ia === 1) {
|
|
2208
2210
|
t.ia = 2;
|
|
2209
2211
|
var o = t.value;
|
|
2210
2212
|
if (Array.isArray(o)) {
|
|
2211
|
-
if (t.U = Cn(this, o), o[0] ===
|
|
2212
|
-
return t.ia = 1,
|
|
2213
|
+
if (t.U = Cn(this, o), o[0] === Ue ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2214
|
+
return t.ia = 1, ct(this, o, t.value);
|
|
2213
2215
|
} else
|
|
2214
2216
|
t.U = o;
|
|
2215
2217
|
t.F = [], t.A = 0;
|
|
2216
2218
|
}
|
|
2217
2219
|
if (o = t.U, !t.Qa) {
|
|
2218
2220
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2219
|
-
return new
|
|
2221
|
+
return new C(n.arguments[t.A++], t.scope);
|
|
2220
2222
|
if (n.type === "NewExpression") {
|
|
2221
|
-
if (o instanceof D && !o.Ab ||
|
|
2222
|
-
t.B =
|
|
2223
|
+
if (o instanceof D && !o.Ab || k(this, this.j, q(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2224
|
+
t.B = Me(this);
|
|
2223
2225
|
else {
|
|
2224
2226
|
var i = o.h.prototype;
|
|
2225
2227
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2231,61 +2233,61 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2231
2233
|
if (t.eb)
|
|
2232
2234
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2233
2235
|
else {
|
|
2234
|
-
if (t.eb = !0, o instanceof D ||
|
|
2235
|
-
for (n =
|
|
2236
|
+
if (t.eb = !0, o instanceof D || k(this, this.j, q(this, n.callee) + " is not a function"), e = o.node) {
|
|
2237
|
+
for (n = ln(this, e.body, o.Va), r = Me(this), o = 0; o < t.F.length; o++)
|
|
2236
2238
|
this.g(r, o, t.F[o]);
|
|
2237
2239
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2238
2240
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2239
|
-
return n.S || (t.B =
|
|
2241
|
+
return n.S || (t.B = tn(this, t.B)), this.g(n.object, "this", t.B, dn), t.value = void 0, new C(e.body, n);
|
|
2240
2242
|
}
|
|
2241
2243
|
if (o.eval)
|
|
2242
2244
|
if (o = t.F[0], typeof o != "string")
|
|
2243
2245
|
t.value = o;
|
|
2244
2246
|
else {
|
|
2245
2247
|
try {
|
|
2246
|
-
r =
|
|
2248
|
+
r = _e(String(o), "eval" + this.Hb++);
|
|
2247
2249
|
} catch (p) {
|
|
2248
|
-
|
|
2250
|
+
k(this, this.T, "Invalid code: " + p.message);
|
|
2249
2251
|
}
|
|
2250
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2252
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Bt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = ln(this, r, n) : st(this, r, n), this.value = void 0, new C(o, n);
|
|
2251
2253
|
}
|
|
2252
2254
|
else if (o.Ta)
|
|
2253
|
-
t.scope.S || (t.B =
|
|
2255
|
+
t.scope.S || (t.B = tn(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2254
2256
|
else if (o.Za) {
|
|
2255
2257
|
var u = this;
|
|
2256
2258
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(p) {
|
|
2257
2259
|
t.value = p, u.za = !1;
|
|
2258
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2260
|
+
}), this.za = !0, t.scope.S || (t.B = tn(this, t.B)), o.Za.apply(t.B, r);
|
|
2259
2261
|
} else
|
|
2260
|
-
|
|
2262
|
+
k(this, this.j, q(this, n.callee) + " is not callable");
|
|
2261
2263
|
}
|
|
2262
2264
|
};
|
|
2263
2265
|
f.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2264
2266
|
var r = t.na || 0;
|
|
2265
2267
|
if (r === 0)
|
|
2266
|
-
return t.na = 1, new
|
|
2268
|
+
return t.na = 1, new C(n.test, t.scope);
|
|
2267
2269
|
if (r === 1) {
|
|
2268
2270
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2269
|
-
return new
|
|
2271
|
+
return new C(n.da, t.scope);
|
|
2270
2272
|
if (!r && n.alternate)
|
|
2271
|
-
return new
|
|
2273
|
+
return new C(n.alternate, t.scope);
|
|
2272
2274
|
this.value = void 0;
|
|
2273
2275
|
}
|
|
2274
2276
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2275
2277
|
};
|
|
2276
2278
|
f.prototype.stepContinueStatement = function(e, t, n) {
|
|
2277
|
-
|
|
2279
|
+
lt(this, 2, void 0, n.label && n.label.name);
|
|
2278
2280
|
};
|
|
2279
2281
|
f.prototype.stepDebuggerStatement = function(e) {
|
|
2280
2282
|
e.pop();
|
|
2281
2283
|
};
|
|
2282
2284
|
f.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2283
2285
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2284
|
-
return t.ga = !0, new
|
|
2286
|
+
return t.ga = !0, new C(n.test, t.scope);
|
|
2285
2287
|
if (!t.value)
|
|
2286
2288
|
e.pop();
|
|
2287
2289
|
else if (n.body)
|
|
2288
|
-
return t.ga = !1, t.W = !0, new
|
|
2290
|
+
return t.ga = !1, t.W = !0, new C(n.body, t.scope);
|
|
2289
2291
|
};
|
|
2290
2292
|
f.prototype.stepEmptyStatement = function(e) {
|
|
2291
2293
|
e.pop();
|
|
@@ -2293,19 +2295,19 @@ f.prototype.stepEmptyStatement = function(e) {
|
|
|
2293
2295
|
f.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2294
2296
|
var r = t.A || 0;
|
|
2295
2297
|
if (n = n.body[r])
|
|
2296
|
-
return t.A = r + 1, new
|
|
2298
|
+
return t.A = r + 1, new C(n, t.scope);
|
|
2297
2299
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2298
2300
|
};
|
|
2299
2301
|
f.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2300
2302
|
if (!t.ka)
|
|
2301
|
-
return this.value = void 0, t.ka = !0, new
|
|
2303
|
+
return this.value = void 0, t.ka = !0, new C(n.la, t.scope);
|
|
2302
2304
|
e.pop(), this.value = t.value;
|
|
2303
2305
|
};
|
|
2304
2306
|
f.prototype.stepForInStatement = function(e, t, n) {
|
|
2305
2307
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2306
|
-
return t.scope.S &&
|
|
2308
|
+
return t.scope.S && k(this, this.T, "for-in loop variable declaration may not have an initializer"), new C(n.left, t.scope);
|
|
2307
2309
|
if (!t.Ca)
|
|
2308
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2310
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new C(n.right, t.scope);
|
|
2309
2311
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2310
2312
|
e:
|
|
2311
2313
|
for (; ; ) {
|
|
@@ -2333,33 +2335,33 @@ f.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2333
2335
|
}
|
|
2334
2336
|
if (!t.wb)
|
|
2335
2337
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2336
|
-
t.pa = [
|
|
2338
|
+
t.pa = [Ue, e.fa[0].id.name];
|
|
2337
2339
|
else
|
|
2338
|
-
return t.pa = null, t = new
|
|
2340
|
+
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2339
2341
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = bn(this, t.pa, e)))
|
|
2340
2342
|
return kn(this, r, t.pa, e);
|
|
2341
2343
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2342
|
-
return new
|
|
2344
|
+
return new C(n.body, t.scope);
|
|
2343
2345
|
};
|
|
2344
2346
|
f.prototype.stepForStatement = function(e, t, n) {
|
|
2345
2347
|
switch (t.na) {
|
|
2346
2348
|
default:
|
|
2347
2349
|
if (t.na = 1, n.ua)
|
|
2348
|
-
return new
|
|
2350
|
+
return new C(n.ua, t.scope);
|
|
2349
2351
|
break;
|
|
2350
2352
|
case 1:
|
|
2351
2353
|
if (t.na = 2, n.test)
|
|
2352
|
-
return new
|
|
2354
|
+
return new C(n.test, t.scope);
|
|
2353
2355
|
break;
|
|
2354
2356
|
case 2:
|
|
2355
2357
|
if (t.na = 3, n.test && !t.value)
|
|
2356
2358
|
e.pop();
|
|
2357
2359
|
else
|
|
2358
|
-
return t.W = !0, new
|
|
2360
|
+
return t.W = !0, new C(n.body, t.scope);
|
|
2359
2361
|
break;
|
|
2360
2362
|
case 3:
|
|
2361
2363
|
if (t.na = 1, n.update)
|
|
2362
|
-
return new
|
|
2364
|
+
return new C(n.update, t.scope);
|
|
2363
2365
|
}
|
|
2364
2366
|
};
|
|
2365
2367
|
f.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2370,16 +2372,16 @@ f.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2370
2372
|
};
|
|
2371
2373
|
f.prototype.stepIdentifier = function(e, t, n) {
|
|
2372
2374
|
if (e.pop(), t.sa)
|
|
2373
|
-
e[e.length - 1].value = [
|
|
2375
|
+
e[e.length - 1].value = [Ue, n.name];
|
|
2374
2376
|
else {
|
|
2375
2377
|
if (t = An(this, n.name), this.P)
|
|
2376
|
-
return
|
|
2378
|
+
return ct(this, t, this.Na);
|
|
2377
2379
|
e[e.length - 1].value = t;
|
|
2378
2380
|
}
|
|
2379
2381
|
};
|
|
2380
2382
|
f.prototype.stepIfStatement = f.prototype.stepConditionalExpression;
|
|
2381
2383
|
f.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2382
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2384
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2383
2385
|
};
|
|
2384
2386
|
f.prototype.stepLiteral = function(e, t, n) {
|
|
2385
2387
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), fn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2388,29 +2390,29 @@ f.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2388
2390
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2389
2391
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2390
2392
|
if (!t.ja)
|
|
2391
|
-
return t.ja = !0, new
|
|
2393
|
+
return t.ja = !0, new C(n.left, t.scope);
|
|
2392
2394
|
if (t.Da)
|
|
2393
2395
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2394
2396
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2395
2397
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2396
2398
|
else
|
|
2397
|
-
return t.Da = !0, new
|
|
2399
|
+
return t.Da = !0, new C(n.right, t.scope);
|
|
2398
2400
|
};
|
|
2399
2401
|
f.prototype.stepMemberExpression = function(e, t, n) {
|
|
2400
2402
|
if (!t.Ca)
|
|
2401
|
-
return t.Ca = !0, new
|
|
2403
|
+
return t.Ca = !0, new C(n.object, t.scope);
|
|
2402
2404
|
if (n.bb)
|
|
2403
2405
|
if (t.Vb)
|
|
2404
2406
|
n = t.value;
|
|
2405
2407
|
else
|
|
2406
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2408
|
+
return t.u = t.value, t.Vb = !0, new C(n.Wa, t.scope);
|
|
2407
2409
|
else
|
|
2408
2410
|
t.u = t.value, n = n.Wa.name;
|
|
2409
2411
|
if (e.pop(), t.sa)
|
|
2410
2412
|
e[e.length - 1].value = [t.u, n];
|
|
2411
2413
|
else {
|
|
2412
2414
|
if (n = this.G(t.u, n), this.P)
|
|
2413
|
-
return
|
|
2415
|
+
return ct(this, n, t.u);
|
|
2414
2416
|
e[e.length - 1].value = n;
|
|
2415
2417
|
}
|
|
2416
2418
|
};
|
|
@@ -2430,7 +2432,7 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2430
2432
|
i = u.value;
|
|
2431
2433
|
else
|
|
2432
2434
|
throw SyntaxError("Unknown object structure: " + u.type);
|
|
2433
|
-
return t.Pa = i, new
|
|
2435
|
+
return t.Pa = i, new C(o.value, t.scope);
|
|
2434
2436
|
}
|
|
2435
2437
|
for (u in t.Ja)
|
|
2436
2438
|
n = t.Ja[u], "get" in n || "set" in n ? this.g(t.u, u, it, {
|
|
@@ -2443,35 +2445,35 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2443
2445
|
};
|
|
2444
2446
|
f.prototype.stepProgram = function(e, t, n) {
|
|
2445
2447
|
if (e = n.body.shift())
|
|
2446
|
-
return t.done = !1, new
|
|
2448
|
+
return t.done = !1, new C(e, t.scope);
|
|
2447
2449
|
t.done = !0;
|
|
2448
2450
|
};
|
|
2449
2451
|
f.prototype.stepReturnStatement = function(e, t, n) {
|
|
2450
2452
|
if (n.K && !t.ka)
|
|
2451
|
-
return t.ka = !0, new
|
|
2452
|
-
|
|
2453
|
+
return t.ka = !0, new C(n.K, t.scope);
|
|
2454
|
+
lt(this, 3, t.value);
|
|
2453
2455
|
};
|
|
2454
2456
|
f.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2455
2457
|
var r = t.A || 0;
|
|
2456
2458
|
if (n = n.xb[r])
|
|
2457
|
-
return t.A = r + 1, new
|
|
2459
|
+
return t.A = r + 1, new C(n, t.scope);
|
|
2458
2460
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2459
2461
|
};
|
|
2460
2462
|
f.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2461
2463
|
if (!t.ga)
|
|
2462
|
-
return t.ga = 1, new
|
|
2464
|
+
return t.ga = 1, new C(n.Qb, t.scope);
|
|
2463
2465
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2464
2466
|
var r = t.gb || 0, o = n.tb[r];
|
|
2465
2467
|
if (t.Ha || !o || o.test)
|
|
2466
2468
|
if (o || t.Ha || t.cb === -1)
|
|
2467
2469
|
if (o) {
|
|
2468
2470
|
if (!t.Ha && !t.Fb && o.test)
|
|
2469
|
-
return t.Fb = !0, new
|
|
2471
|
+
return t.Fb = !0, new C(o.test, t.scope);
|
|
2470
2472
|
if (t.Ha || t.value === t.hc) {
|
|
2471
2473
|
t.Ha = !0;
|
|
2472
2474
|
var i = t.A || 0;
|
|
2473
2475
|
if (o.da[i])
|
|
2474
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2476
|
+
return t.Zb = !0, t.A = i + 1, new C(o.da[i], t.scope);
|
|
2475
2477
|
}
|
|
2476
2478
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2477
2479
|
} else {
|
|
@@ -2489,22 +2491,22 @@ f.prototype.stepThisExpression = function(e) {
|
|
|
2489
2491
|
};
|
|
2490
2492
|
f.prototype.stepThrowStatement = function(e, t, n) {
|
|
2491
2493
|
if (t.ka)
|
|
2492
|
-
|
|
2494
|
+
k(this, t.value);
|
|
2493
2495
|
else
|
|
2494
|
-
return t.ka = !0, new
|
|
2496
|
+
return t.ka = !0, new C(n.K, t.scope);
|
|
2495
2497
|
};
|
|
2496
2498
|
f.prototype.stepTryStatement = function(e, t, n) {
|
|
2497
2499
|
if (!t.Rb)
|
|
2498
|
-
return t.Rb = !0, new
|
|
2500
|
+
return t.Rb = !0, new C(n.block, t.scope);
|
|
2499
2501
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2500
|
-
return t.Tb = !0, e = vn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2502
|
+
return t.Tb = !0, e = vn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2501
2503
|
if (!t.Sb && n.fb)
|
|
2502
|
-
return t.Sb = !0, new
|
|
2503
|
-
e.pop(), t.ea &&
|
|
2504
|
+
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2505
|
+
e.pop(), t.ea && lt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2504
2506
|
};
|
|
2505
2507
|
f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2506
2508
|
if (!t.ka)
|
|
2507
|
-
return t.ka = !0, e = new
|
|
2509
|
+
return t.ka = !0, e = new C(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2508
2510
|
e.pop();
|
|
2509
2511
|
var r = t.value;
|
|
2510
2512
|
switch (n.operator) {
|
|
@@ -2523,11 +2525,11 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2523
2525
|
case "delete":
|
|
2524
2526
|
if (n = !0, Array.isArray(r)) {
|
|
2525
2527
|
var o = r[0];
|
|
2526
|
-
o ===
|
|
2528
|
+
o === Ue && (o = t.scope), r = String(r[1]);
|
|
2527
2529
|
try {
|
|
2528
2530
|
delete o.h[r];
|
|
2529
2531
|
} catch {
|
|
2530
|
-
t.scope.S ?
|
|
2532
|
+
t.scope.S ? k(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2531
2533
|
}
|
|
2532
2534
|
}
|
|
2533
2535
|
r = n;
|
|
@@ -2545,11 +2547,11 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2545
2547
|
};
|
|
2546
2548
|
f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2547
2549
|
if (!t.ja)
|
|
2548
|
-
return t.ja = !0, e = new
|
|
2550
|
+
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2549
2551
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2550
2552
|
var r = Cn(this, t.Ga);
|
|
2551
2553
|
if (t.ma = r, this.P)
|
|
2552
|
-
return t.Ba = !0,
|
|
2554
|
+
return t.Ba = !0, ct(this, r, t.Ga);
|
|
2553
2555
|
}
|
|
2554
2556
|
if (t.ta)
|
|
2555
2557
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2568,15 +2570,15 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2568
2570
|
f.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2569
2571
|
n = n.fa;
|
|
2570
2572
|
var r = t.A || 0, o = n[r];
|
|
2571
|
-
for (t.Bb && o && (
|
|
2573
|
+
for (t.Bb && o && (Ir(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2572
2574
|
if (o.ua)
|
|
2573
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2575
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new C(o.ua, t.scope);
|
|
2574
2576
|
o = n[++r];
|
|
2575
2577
|
}
|
|
2576
2578
|
e.pop();
|
|
2577
2579
|
};
|
|
2578
2580
|
f.prototype.stepWithStatement = function(e, t, n) {
|
|
2579
|
-
return t.Ca ? (e.pop(), e = vn(this, t.scope, t.value), new
|
|
2581
|
+
return t.Ca ? (e.pop(), e = vn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2580
2582
|
};
|
|
2581
2583
|
f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
|
|
2582
2584
|
Se.Interpreter = f;
|
|
@@ -2595,7 +2597,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
|
|
|
2595
2597
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2596
2598
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2597
2599
|
f.VALUE_IN_DESCRIPTOR = it;
|
|
2598
|
-
const
|
|
2600
|
+
const Qo = (e) => e.split(`
|
|
2599
2601
|
`).map((t) => {
|
|
2600
2602
|
const n = t.trim();
|
|
2601
2603
|
if (t.includes("__awaiter"))
|
|
@@ -2608,7 +2610,7 @@ const Zo = (e) => e.split(`
|
|
|
2608
2610
|
${p}
|
|
2609
2611
|
`;
|
|
2610
2612
|
}).filter(Boolean).join(`
|
|
2611
|
-
`), lr = (e) => e + "JSON",
|
|
2613
|
+
`), lr = (e) => e + "JSON", ei = ({
|
|
2612
2614
|
builder: e,
|
|
2613
2615
|
context: t,
|
|
2614
2616
|
event: n,
|
|
@@ -2620,38 +2622,38 @@ const Zo = (e) => e.split(`
|
|
|
2620
2622
|
const p = {
|
|
2621
2623
|
...r,
|
|
2622
2624
|
...o
|
|
2623
|
-
}, h =
|
|
2625
|
+
}, h = wr({
|
|
2624
2626
|
builder: e,
|
|
2625
2627
|
context: t,
|
|
2626
2628
|
event: n,
|
|
2627
2629
|
state: p
|
|
2628
2630
|
}), m = h.map(([R]) => {
|
|
2629
|
-
const
|
|
2630
|
-
return `var ${R} = ${
|
|
2631
|
+
const M = lr(R);
|
|
2632
|
+
return `var ${R} = ${M} === undefined ? undefined : JSON.parse(${M});`;
|
|
2631
2633
|
}).join(`
|
|
2632
|
-
`), v =
|
|
2634
|
+
`), v = Qo(u);
|
|
2633
2635
|
if (v === "") {
|
|
2634
2636
|
ee.warn("Skipping evaluation of empty code block.");
|
|
2635
2637
|
return;
|
|
2636
2638
|
}
|
|
2637
|
-
const
|
|
2639
|
+
const A = `
|
|
2638
2640
|
function theFunction() {
|
|
2639
2641
|
${m}
|
|
2640
2642
|
|
|
2641
2643
|
${v}
|
|
2642
2644
|
}
|
|
2643
2645
|
theFunction();
|
|
2644
|
-
`,
|
|
2645
|
-
const te =
|
|
2646
|
+
`, I = (R, M) => {
|
|
2647
|
+
const te = Br(p, R, M);
|
|
2646
2648
|
i == null || i(te);
|
|
2647
|
-
}, $ = function(R,
|
|
2649
|
+
}, $ = function(R, M) {
|
|
2648
2650
|
h.forEach(([te, Fe]) => {
|
|
2649
2651
|
const E = JSON.stringify(Fe);
|
|
2650
|
-
R.setProperty(
|
|
2651
|
-
}), R.setProperty(
|
|
2652
|
+
R.setProperty(M, lr(te), E);
|
|
2653
|
+
}), R.setProperty(M, "setRootState", R.createNativeFunction(I));
|
|
2652
2654
|
};
|
|
2653
2655
|
try {
|
|
2654
|
-
const R = new f(
|
|
2656
|
+
const R = new f(A, $);
|
|
2655
2657
|
return R.run(), R.pseudoToNative(R.value);
|
|
2656
2658
|
} catch (R) {
|
|
2657
2659
|
ee.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2659,8 +2661,8 @@ theFunction();
|
|
|
2659
2661
|
});
|
|
2660
2662
|
return;
|
|
2661
2663
|
}
|
|
2662
|
-
},
|
|
2663
|
-
function
|
|
2664
|
+
}, ti = (e) => J() ? $o(e) : ei(e);
|
|
2665
|
+
function St({
|
|
2664
2666
|
code: e,
|
|
2665
2667
|
context: t,
|
|
2666
2668
|
localState: n,
|
|
@@ -2674,10 +2676,10 @@ function Et({
|
|
|
2674
2676
|
return;
|
|
2675
2677
|
}
|
|
2676
2678
|
const p = {
|
|
2677
|
-
code:
|
|
2679
|
+
code: Oo(e, {
|
|
2678
2680
|
isExpression: u
|
|
2679
2681
|
}),
|
|
2680
|
-
builder:
|
|
2682
|
+
builder: jo(),
|
|
2681
2683
|
context: t,
|
|
2682
2684
|
event: i,
|
|
2683
2685
|
rootSetState: o,
|
|
@@ -2685,7 +2687,7 @@ function Et({
|
|
|
2685
2687
|
localState: n
|
|
2686
2688
|
};
|
|
2687
2689
|
try {
|
|
2688
|
-
return
|
|
2690
|
+
return ti(p);
|
|
2689
2691
|
} catch (h) {
|
|
2690
2692
|
ee.error("Failed code evaluation: " + h.message, {
|
|
2691
2693
|
code: e
|
|
@@ -2693,8 +2695,8 @@ function Et({
|
|
|
2693
2695
|
return;
|
|
2694
2696
|
}
|
|
2695
2697
|
}
|
|
2696
|
-
const
|
|
2697
|
-
const
|
|
2698
|
+
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2699
|
+
const ni = ({
|
|
2698
2700
|
block: e,
|
|
2699
2701
|
context: t,
|
|
2700
2702
|
localState: n,
|
|
@@ -2703,7 +2705,7 @@ const ti = ({
|
|
|
2703
2705
|
}) => {
|
|
2704
2706
|
if (!e.bindings)
|
|
2705
2707
|
return e;
|
|
2706
|
-
const i =
|
|
2708
|
+
const i = pt(e), u = {
|
|
2707
2709
|
...i,
|
|
2708
2710
|
properties: {
|
|
2709
2711
|
...i.properties
|
|
@@ -2713,18 +2715,18 @@ const ti = ({
|
|
|
2713
2715
|
}
|
|
2714
2716
|
};
|
|
2715
2717
|
for (const p in e.bindings) {
|
|
2716
|
-
const h = e.bindings[p], m =
|
|
2718
|
+
const h = e.bindings[p], m = St({
|
|
2717
2719
|
code: h,
|
|
2718
2720
|
localState: n,
|
|
2719
2721
|
rootState: r,
|
|
2720
2722
|
rootSetState: o,
|
|
2721
2723
|
context: t
|
|
2722
2724
|
});
|
|
2723
|
-
|
|
2725
|
+
Br(u, p, m);
|
|
2724
2726
|
}
|
|
2725
2727
|
return u;
|
|
2726
2728
|
};
|
|
2727
|
-
function
|
|
2729
|
+
function Ft({
|
|
2728
2730
|
block: e,
|
|
2729
2731
|
context: t,
|
|
2730
2732
|
shouldEvaluateBindings: n,
|
|
@@ -2733,7 +2735,7 @@ function St({
|
|
|
2733
2735
|
rootSetState: i
|
|
2734
2736
|
}) {
|
|
2735
2737
|
const u = e;
|
|
2736
|
-
return n ?
|
|
2738
|
+
return n ? ni({
|
|
2737
2739
|
block: u,
|
|
2738
2740
|
localState: r,
|
|
2739
2741
|
rootState: o,
|
|
@@ -2741,13 +2743,13 @@ function St({
|
|
|
2741
2743
|
context: t
|
|
2742
2744
|
}) : u;
|
|
2743
2745
|
}
|
|
2744
|
-
const
|
|
2746
|
+
const ri = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], oi = (e) => typeof e == "string" && ri.includes(e.toLowerCase()), ii = ({
|
|
2745
2747
|
block: e,
|
|
2746
2748
|
context: t,
|
|
2747
2749
|
registeredComponents: n
|
|
2748
2750
|
}) => {
|
|
2749
2751
|
var i;
|
|
2750
|
-
const r = (i =
|
|
2752
|
+
const r = (i = Ft({
|
|
2751
2753
|
block: e,
|
|
2752
2754
|
localState: t.localState,
|
|
2753
2755
|
rootState: t.rootState,
|
|
@@ -2763,7 +2765,7 @@ const ni = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2763
2765
|
console.warn(`
|
|
2764
2766
|
Could not find a registered component named "${r}".
|
|
2765
2767
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2766
|
-
},
|
|
2768
|
+
}, si = ({
|
|
2767
2769
|
block: e,
|
|
2768
2770
|
context: t
|
|
2769
2771
|
}) => {
|
|
@@ -2773,7 +2775,7 @@ const ni = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2773
2775
|
} = e;
|
|
2774
2776
|
if (!(n != null && n.collection))
|
|
2775
2777
|
return;
|
|
2776
|
-
const o =
|
|
2778
|
+
const o = St({
|
|
2777
2779
|
code: n.collection,
|
|
2778
2780
|
localState: t.localState,
|
|
2779
2781
|
rootState: t.rootState,
|
|
@@ -2796,55 +2798,55 @@ const ni = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2796
2798
|
},
|
|
2797
2799
|
block: r
|
|
2798
2800
|
}));
|
|
2799
|
-
},
|
|
2801
|
+
}, ui = () => Promise.resolve().then(() => gi).then((e) => e.default).catch((e) => {
|
|
2800
2802
|
throw console.error(
|
|
2801
2803
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
2802
2804
|
e
|
|
2803
2805
|
), e;
|
|
2804
|
-
}),
|
|
2806
|
+
}), ai = () => import("./block-wrapper.695c0554.js").then((e) => e.default).catch((e) => {
|
|
2805
2807
|
throw console.error(
|
|
2806
2808
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
2807
2809
|
e
|
|
2808
2810
|
), e;
|
|
2809
|
-
}),
|
|
2811
|
+
}), li = () => import("./component-ref.5be0ad03.js").then((e) => e.default).catch((e) => {
|
|
2810
2812
|
throw console.error(
|
|
2811
2813
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
2812
2814
|
e
|
|
2813
2815
|
), e;
|
|
2814
|
-
}),
|
|
2816
|
+
}), ci = () => import("./repeated-block.14eebee4.js").then((e) => e.default).catch((e) => {
|
|
2815
2817
|
throw console.error(
|
|
2816
2818
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
2817
2819
|
e
|
|
2818
2820
|
), e;
|
|
2819
|
-
}),
|
|
2821
|
+
}), pi = N({
|
|
2820
2822
|
name: "block",
|
|
2821
2823
|
components: {
|
|
2822
|
-
ComponentRef:
|
|
2823
|
-
BlockWrapper:
|
|
2824
|
-
RepeatedBlock:
|
|
2825
|
-
BlockStyles:
|
|
2824
|
+
ComponentRef: Ct(li),
|
|
2825
|
+
BlockWrapper: Ct(ai),
|
|
2826
|
+
RepeatedBlock: Ct(ci),
|
|
2827
|
+
BlockStyles: Ct(ui)
|
|
2826
2828
|
},
|
|
2827
2829
|
props: ["block", "context", "registeredComponents"],
|
|
2828
2830
|
data() {
|
|
2829
|
-
return { childrenContext: this.context, isEmptyHtmlElement:
|
|
2831
|
+
return { childrenContext: this.context, isEmptyHtmlElement: oi };
|
|
2830
2832
|
},
|
|
2831
2833
|
computed: {
|
|
2832
2834
|
blockComponent() {
|
|
2833
|
-
return
|
|
2835
|
+
return ii({
|
|
2834
2836
|
block: this.block,
|
|
2835
2837
|
context: this.context,
|
|
2836
2838
|
registeredComponents: this.registeredComponents
|
|
2837
2839
|
});
|
|
2838
2840
|
},
|
|
2839
2841
|
repeatItem() {
|
|
2840
|
-
return
|
|
2842
|
+
return si({
|
|
2841
2843
|
block: this.block,
|
|
2842
2844
|
context: this.context
|
|
2843
2845
|
});
|
|
2844
2846
|
},
|
|
2845
2847
|
processedBlock() {
|
|
2846
2848
|
var e;
|
|
2847
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
2849
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Ft({
|
|
2848
2850
|
block: this.block,
|
|
2849
2851
|
localState: this.context.localState,
|
|
2850
2852
|
rootState: this.context.rootState,
|
|
@@ -2873,7 +2875,7 @@ const ni = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2873
2875
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
2874
2876
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
2875
2877
|
componentOptions: {
|
|
2876
|
-
...
|
|
2878
|
+
...wo(this.processedBlock),
|
|
2877
2879
|
builderContext: this.context,
|
|
2878
2880
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" ? {
|
|
2879
2881
|
builderComponents: this.registeredComponents
|
|
@@ -2888,11 +2890,11 @@ const ni = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2888
2890
|
}
|
|
2889
2891
|
}
|
|
2890
2892
|
});
|
|
2891
|
-
function
|
|
2892
|
-
var
|
|
2893
|
-
const u =
|
|
2894
|
-
return e.canShowBlock ? (
|
|
2895
|
-
(
|
|
2893
|
+
function di(e, t, n, r, o, i) {
|
|
2894
|
+
var A;
|
|
2895
|
+
const u = V("block-wrapper"), p = V("repeated-block"), h = V("component-ref"), m = V("block", !0), v = V("block-styles");
|
|
2896
|
+
return e.canShowBlock ? (b(), x(re, { key: 0 }, [
|
|
2897
|
+
(A = e.blockComponent) != null && A.noWrap ? (b(), H(h, {
|
|
2896
2898
|
key: 1,
|
|
2897
2899
|
componentRef: e.componentRefProps.componentRef,
|
|
2898
2900
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -2902,28 +2904,28 @@ function pi(e, t, n, r, o, i) {
|
|
|
2902
2904
|
builderBlock: e.componentRefProps.builderBlock,
|
|
2903
2905
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
2904
2906
|
isInteractive: e.componentRefProps.isInteractive
|
|
2905
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (
|
|
2906
|
-
e.isEmptyHtmlElement(e.Tag) ? (
|
|
2907
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (b(), x(re, { key: 0 }, [
|
|
2908
|
+
e.isEmptyHtmlElement(e.Tag) ? (b(), H(u, {
|
|
2907
2909
|
key: 0,
|
|
2908
2910
|
Wrapper: e.Tag,
|
|
2909
2911
|
block: e.processedBlock,
|
|
2910
2912
|
context: e.context,
|
|
2911
2913
|
hasChildren: !1
|
|
2912
2914
|
}, null, 8, ["Wrapper", "block", "context"])) : P("v-if", !0),
|
|
2913
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (
|
|
2915
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (b(!0), x(re, { key: 1 }, xe(e.repeatItem, (I, $) => (b(), H(p, {
|
|
2914
2916
|
key: $,
|
|
2915
|
-
repeatContext:
|
|
2916
|
-
block:
|
|
2917
|
+
repeatContext: I.context,
|
|
2918
|
+
block: I.block,
|
|
2917
2919
|
registeredComponents: e.registeredComponents
|
|
2918
2920
|
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : P("v-if", !0),
|
|
2919
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (
|
|
2921
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (b(), H(u, {
|
|
2920
2922
|
key: 2,
|
|
2921
2923
|
Wrapper: e.Tag,
|
|
2922
2924
|
block: e.processedBlock,
|
|
2923
2925
|
context: e.context,
|
|
2924
2926
|
hasChildren: !0
|
|
2925
2927
|
}, {
|
|
2926
|
-
default:
|
|
2928
|
+
default: at(() => [
|
|
2927
2929
|
Ie(h, {
|
|
2928
2930
|
componentRef: e.componentRefProps.componentRef,
|
|
2929
2931
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -2934,15 +2936,15 @@ function pi(e, t, n, r, o, i) {
|
|
|
2934
2936
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
2935
2937
|
isInteractive: e.componentRefProps.isInteractive
|
|
2936
2938
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
2937
|
-
(
|
|
2938
|
-
key: "block-" +
|
|
2939
|
-
block:
|
|
2939
|
+
(b(!0), x(re, null, xe(e.childrenWithoutParentComponent, (I, $) => (b(), H(m, {
|
|
2940
|
+
key: "block-" + I.id,
|
|
2941
|
+
block: I,
|
|
2940
2942
|
context: e.childrenContext,
|
|
2941
2943
|
registeredComponents: e.registeredComponents
|
|
2942
2944
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
2943
|
-
(
|
|
2944
|
-
key: "block-style-" +
|
|
2945
|
-
block:
|
|
2945
|
+
(b(!0), x(re, null, xe(e.childrenWithoutParentComponent, (I, $) => (b(), H(v, {
|
|
2946
|
+
key: "block-style-" + I.id,
|
|
2947
|
+
block: I,
|
|
2946
2948
|
context: e.childrenContext
|
|
2947
2949
|
}, null, 8, ["block", "context"]))), 128))
|
|
2948
2950
|
]),
|
|
@@ -2951,10 +2953,10 @@ function pi(e, t, n, r, o, i) {
|
|
|
2951
2953
|
], 64))
|
|
2952
2954
|
], 64)) : P("v-if", !0);
|
|
2953
2955
|
}
|
|
2954
|
-
const
|
|
2956
|
+
const jr = /* @__PURE__ */ _(pi, [["render", di], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2955
2957
|
__proto__: null,
|
|
2956
|
-
default:
|
|
2957
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2958
|
+
default: jr
|
|
2959
|
+
}, Symbol.toStringTag, { value: "Module" })), Or = {
|
|
2958
2960
|
small: {
|
|
2959
2961
|
min: 320,
|
|
2960
2962
|
default: 321,
|
|
@@ -2970,11 +2972,11 @@ const Rr = /* @__PURE__ */ N(ci, [["render", pi], ["__file", "/home/runner/work/
|
|
|
2970
2972
|
default: 991,
|
|
2971
2973
|
max: 1200
|
|
2972
2974
|
}
|
|
2973
|
-
}, cr = (e, t =
|
|
2975
|
+
}, cr = (e, t = Or) => `@media (max-width: ${t[e].max}px)`, $r = ({
|
|
2974
2976
|
small: e,
|
|
2975
2977
|
medium: t
|
|
2976
2978
|
}) => {
|
|
2977
|
-
const n =
|
|
2979
|
+
const n = pt(Or);
|
|
2978
2980
|
if (!e || !t)
|
|
2979
2981
|
return n;
|
|
2980
2982
|
const r = Math.floor(e / 2);
|
|
@@ -2995,22 +2997,22 @@ const Rr = /* @__PURE__ */ N(ci, [["render", pi], ["__file", "/home/runner/work/
|
|
|
2995
2997
|
min: i,
|
|
2996
2998
|
default: i + 1
|
|
2997
2999
|
}, n;
|
|
2998
|
-
},
|
|
3000
|
+
}, hi = N({
|
|
2999
3001
|
render() {
|
|
3000
3002
|
return br("style", { id: this.id, innerHTML: this.styles });
|
|
3001
3003
|
},
|
|
3002
3004
|
name: "inlined-styles",
|
|
3003
3005
|
props: ["styles", "id"]
|
|
3004
|
-
}),
|
|
3006
|
+
}), xt = /* @__PURE__ */ _(hi, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), fi = N({
|
|
3005
3007
|
name: "block-styles",
|
|
3006
|
-
components: { InlinedStyles:
|
|
3008
|
+
components: { InlinedStyles: xt },
|
|
3007
3009
|
props: ["block", "context"],
|
|
3008
3010
|
data() {
|
|
3009
3011
|
return { TARGET: ae };
|
|
3010
3012
|
},
|
|
3011
3013
|
computed: {
|
|
3012
3014
|
canShowBlock() {
|
|
3013
|
-
const e =
|
|
3015
|
+
const e = Ft({
|
|
3014
3016
|
block: this.block,
|
|
3015
3017
|
localState: this.context.localState,
|
|
3016
3018
|
rootState: this.context.rootState,
|
|
@@ -3021,30 +3023,30 @@ const Rr = /* @__PURE__ */ N(ci, [["render", pi], ["__file", "/home/runner/work/
|
|
|
3021
3023
|
return ve(e.hide) ? !e.hide : ve(e.show) ? e.show : !0;
|
|
3022
3024
|
},
|
|
3023
3025
|
css() {
|
|
3024
|
-
var
|
|
3025
|
-
const e =
|
|
3026
|
+
var A;
|
|
3027
|
+
const e = Ft({
|
|
3026
3028
|
block: this.block,
|
|
3027
3029
|
localState: this.context.localState,
|
|
3028
3030
|
rootState: this.context.rootState,
|
|
3029
3031
|
rootSetState: this.context.rootSetState,
|
|
3030
3032
|
context: this.context.context,
|
|
3031
3033
|
shouldEvaluateBindings: !0
|
|
3032
|
-
}), t = e.responsiveStyles, n = this.context.content, r =
|
|
3033
|
-
((
|
|
3034
|
+
}), t = e.responsiveStyles, n = this.context.content, r = $r(
|
|
3035
|
+
((A = n == null ? void 0 : n.meta) == null ? void 0 : A.breakpoints) || {}
|
|
3034
3036
|
), o = t == null ? void 0 : t.large, i = t == null ? void 0 : t.medium, u = t == null ? void 0 : t.small, p = e.id;
|
|
3035
3037
|
if (!p)
|
|
3036
3038
|
return "";
|
|
3037
|
-
const h = o ?
|
|
3039
|
+
const h = o ? en({
|
|
3038
3040
|
className: p,
|
|
3039
3041
|
styles: o
|
|
3040
|
-
}) : "", m = i ?
|
|
3042
|
+
}) : "", m = i ? en({
|
|
3041
3043
|
className: p,
|
|
3042
3044
|
styles: i,
|
|
3043
3045
|
mediaQuery: cr(
|
|
3044
3046
|
"medium",
|
|
3045
3047
|
r
|
|
3046
3048
|
)
|
|
3047
|
-
}) : "", v = u ?
|
|
3049
|
+
}) : "", v = u ? en({
|
|
3048
3050
|
className: p,
|
|
3049
3051
|
styles: u,
|
|
3050
3052
|
mediaQuery: cr(
|
|
@@ -3056,19 +3058,26 @@ const Rr = /* @__PURE__ */ N(ci, [["render", pi], ["__file", "/home/runner/work/
|
|
|
3056
3058
|
}
|
|
3057
3059
|
}
|
|
3058
3060
|
});
|
|
3059
|
-
function
|
|
3060
|
-
const u =
|
|
3061
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (
|
|
3061
|
+
function mi(e, t, n, r, o, i) {
|
|
3062
|
+
const u = V("inlined-styles");
|
|
3063
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (b(), H(u, {
|
|
3062
3064
|
key: 0,
|
|
3063
3065
|
styles: e.css
|
|
3064
3066
|
}, null, 8, ["styles"])) : P("v-if", !0);
|
|
3065
3067
|
}
|
|
3066
|
-
const
|
|
3068
|
+
const Pr = /* @__PURE__ */ _(fi, [["render", mi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3067
3069
|
__proto__: null,
|
|
3068
|
-
default:
|
|
3069
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3070
|
+
default: Pr
|
|
3071
|
+
}, Symbol.toStringTag, { value: "Module" })), yi = N({
|
|
3070
3072
|
name: "builder-blocks-wrapper",
|
|
3071
|
-
props: [
|
|
3073
|
+
props: [
|
|
3074
|
+
"BlocksWrapper",
|
|
3075
|
+
"blocks",
|
|
3076
|
+
"parent",
|
|
3077
|
+
"path",
|
|
3078
|
+
"styleProp",
|
|
3079
|
+
"BlocksWrapperProps"
|
|
3080
|
+
],
|
|
3072
3081
|
computed: {
|
|
3073
3082
|
className() {
|
|
3074
3083
|
var e;
|
|
@@ -3113,26 +3122,28 @@ const $r = /* @__PURE__ */ N(hi, [["render", fi], ["__file", "/home/runner/work/
|
|
|
3113
3122
|
}
|
|
3114
3123
|
}
|
|
3115
3124
|
});
|
|
3116
|
-
const yi = ["builder-path", "builder-parent-id"];
|
|
3117
3125
|
function vi(e, t, n, r, o, i) {
|
|
3118
|
-
return
|
|
3119
|
-
class: e._classStringToObject(e.className + "
|
|
3126
|
+
return b(), H(kr(e.BlocksWrapper), oe({
|
|
3127
|
+
class: e._classStringToObject(e.className + " component-178o76acnws"),
|
|
3120
3128
|
"builder-path": e.path,
|
|
3121
3129
|
"builder-parent-id": e.parent,
|
|
3122
3130
|
style: e.styleProp,
|
|
3123
|
-
onClick:
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
}, {}),
|
|
3127
|
-
|
|
3128
|
-
|
|
3131
|
+
onClick: (u) => e.onClick(),
|
|
3132
|
+
onMouseEnter: (u) => e.onMouseEnter(),
|
|
3133
|
+
onKeyPress: (u) => e.onClick()
|
|
3134
|
+
}, { ...e.BlocksWrapperProps }), {
|
|
3135
|
+
default: at(() => [
|
|
3136
|
+
Ee(e.$slots, "default", {}, void 0, !0)
|
|
3137
|
+
]),
|
|
3138
|
+
_: 3
|
|
3139
|
+
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3129
3140
|
}
|
|
3130
|
-
const Ai = /* @__PURE__ */
|
|
3141
|
+
const Ai = /* @__PURE__ */ _(yi, [["render", vi], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), Ci = N({
|
|
3131
3142
|
name: "builder-blocks",
|
|
3132
3143
|
components: {
|
|
3133
3144
|
BlocksWrapper: Ai,
|
|
3134
|
-
Block:
|
|
3135
|
-
BlockStyles:
|
|
3145
|
+
Block: jr,
|
|
3146
|
+
BlockStyles: Pr
|
|
3136
3147
|
},
|
|
3137
3148
|
props: [
|
|
3138
3149
|
"blocks",
|
|
@@ -3143,37 +3154,40 @@ const Ai = /* @__PURE__ */ N(gi, [["render", vi], ["__scopeId", "data-v-1f8aab9f
|
|
|
3143
3154
|
"registeredComponents"
|
|
3144
3155
|
],
|
|
3145
3156
|
inject: {
|
|
3146
|
-
builderContext:
|
|
3147
|
-
componentsContext:
|
|
3157
|
+
builderContext: sn.key,
|
|
3158
|
+
componentsContext: Sr.key
|
|
3148
3159
|
}
|
|
3149
3160
|
});
|
|
3150
3161
|
function bi(e, t, n, r, o, i) {
|
|
3151
|
-
|
|
3152
|
-
|
|
3162
|
+
var m, v;
|
|
3163
|
+
const u = V("block"), p = V("block-styles"), h = V("blocks-wrapper");
|
|
3164
|
+
return b(), H(h, {
|
|
3153
3165
|
blocks: e.blocks,
|
|
3154
3166
|
parent: e.parent,
|
|
3155
3167
|
path: e.path,
|
|
3156
|
-
styleProp: e.styleProp
|
|
3168
|
+
styleProp: e.styleProp,
|
|
3169
|
+
BlocksWrapper: (m = e.context) == null ? void 0 : m.BlocksWrapper,
|
|
3170
|
+
BlocksWrapperProps: (v = e.context) == null ? void 0 : v.BlocksWrapperProps
|
|
3157
3171
|
}, {
|
|
3158
|
-
default:
|
|
3159
|
-
e.blocks ? (
|
|
3160
|
-
key: "render-block-" +
|
|
3161
|
-
block:
|
|
3172
|
+
default: at(() => [
|
|
3173
|
+
e.blocks ? (b(!0), x(re, { key: 0 }, xe(e.blocks, (A, I) => (b(), H(u, {
|
|
3174
|
+
key: "render-block-" + A.id,
|
|
3175
|
+
block: A,
|
|
3162
3176
|
context: e.context || e.builderContext,
|
|
3163
3177
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
3164
3178
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : P("v-if", !0),
|
|
3165
|
-
e.blocks ? (
|
|
3166
|
-
key: "block-style-" +
|
|
3167
|
-
block:
|
|
3179
|
+
e.blocks ? (b(!0), x(re, { key: 1 }, xe(e.blocks, (A, I) => (b(), H(p, {
|
|
3180
|
+
key: "block-style-" + A.id,
|
|
3181
|
+
block: A,
|
|
3168
3182
|
context: e.context || e.builderContext
|
|
3169
3183
|
}, null, 8, ["block", "context"]))), 128)) : P("v-if", !0)
|
|
3170
3184
|
]),
|
|
3171
3185
|
_: 1
|
|
3172
|
-
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
3186
|
+
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3173
3187
|
}
|
|
3174
|
-
const En = /* @__PURE__ */
|
|
3188
|
+
const En = /* @__PURE__ */ _(Ci, [["render", bi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), ki = N({
|
|
3175
3189
|
name: "builder-columns",
|
|
3176
|
-
components: { InlinedStyles:
|
|
3190
|
+
components: { InlinedStyles: xt, Blocks: En },
|
|
3177
3191
|
props: [
|
|
3178
3192
|
"js",
|
|
3179
3193
|
"space",
|
|
@@ -3277,7 +3291,7 @@ const En = /* @__PURE__ */ N(Ci, [["render", bi], ["__file", "/home/runner/work/
|
|
|
3277
3291
|
},
|
|
3278
3292
|
getWidthForBreakpointSize(e) {
|
|
3279
3293
|
var n, r;
|
|
3280
|
-
return
|
|
3294
|
+
return $r(
|
|
3281
3295
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3282
3296
|
)[e].max;
|
|
3283
3297
|
},
|
|
@@ -3293,18 +3307,18 @@ const En = /* @__PURE__ */ N(Ci, [["render", bi], ["__file", "/home/runner/work/
|
|
|
3293
3307
|
}
|
|
3294
3308
|
});
|
|
3295
3309
|
function Ei(e, t, n, r, o, i) {
|
|
3296
|
-
const u =
|
|
3297
|
-
return
|
|
3310
|
+
const u = V("inlined-styles"), p = V("blocks");
|
|
3311
|
+
return b(), x("div", oe({
|
|
3298
3312
|
class: e._classStringToObject(
|
|
3299
3313
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
3300
3314
|
),
|
|
3301
3315
|
style: e.columnsCssVars
|
|
3302
3316
|
}, {}), [
|
|
3303
|
-
e.TARGET !== "reactNative" ? (
|
|
3317
|
+
e.TARGET !== "reactNative" ? (b(), H(u, {
|
|
3304
3318
|
key: 0,
|
|
3305
3319
|
styles: e.columnsStyles
|
|
3306
3320
|
}, null, 8, ["styles"])) : P("v-if", !0),
|
|
3307
|
-
(
|
|
3321
|
+
(b(!0), x(re, null, xe(e.columns, (h, m) => (b(), x("div", oe({
|
|
3308
3322
|
key: m,
|
|
3309
3323
|
class: "builder-column div-16nol0lwi20-2",
|
|
3310
3324
|
style: e.columnCssVars(m)
|
|
@@ -3322,16 +3336,16 @@ function Ei(e, t, n, r, o, i) {
|
|
|
3322
3336
|
], 16))), 128))
|
|
3323
3337
|
], 16);
|
|
3324
3338
|
}
|
|
3325
|
-
const Si = /* @__PURE__ */
|
|
3339
|
+
const Si = /* @__PURE__ */ _(ki, [["render", Ei], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Fi = N({
|
|
3326
3340
|
name: "builder-fragment-component",
|
|
3327
3341
|
props: []
|
|
3328
3342
|
});
|
|
3329
3343
|
function wi(e, t, n, r, o, i) {
|
|
3330
|
-
return
|
|
3344
|
+
return b(), x("span", null, [
|
|
3331
3345
|
Ee(e.$slots, "default")
|
|
3332
3346
|
]);
|
|
3333
3347
|
}
|
|
3334
|
-
const Bi = /* @__PURE__ */
|
|
3348
|
+
const Bi = /* @__PURE__ */ _(Fi, [["render", wi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
3335
3349
|
function pr(e) {
|
|
3336
3350
|
return e.replace(/http(s)?:/, "");
|
|
3337
3351
|
}
|
|
@@ -3351,7 +3365,7 @@ function xi(e, t) {
|
|
|
3351
3365
|
}
|
|
3352
3366
|
return null;
|
|
3353
3367
|
}
|
|
3354
|
-
function
|
|
3368
|
+
function nn(e) {
|
|
3355
3369
|
if (!e)
|
|
3356
3370
|
return e;
|
|
3357
3371
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3362,7 +3376,7 @@ function tn(e) {
|
|
|
3362
3376
|
}
|
|
3363
3377
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3364
3378
|
}
|
|
3365
|
-
const Ii =
|
|
3379
|
+
const Ii = N({
|
|
3366
3380
|
name: "builder-image",
|
|
3367
3381
|
props: [
|
|
3368
3382
|
"image",
|
|
@@ -3386,10 +3400,10 @@ const Ii = _({
|
|
|
3386
3400
|
return this.srcset;
|
|
3387
3401
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
3388
3402
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
3389
|
-
return console.debug("Removed given srcset"),
|
|
3403
|
+
return console.debug("Removed given srcset"), nn(t);
|
|
3390
3404
|
} else if (this.image && !this.srcset)
|
|
3391
|
-
return
|
|
3392
|
-
return
|
|
3405
|
+
return nn(t);
|
|
3406
|
+
return nn(t);
|
|
3393
3407
|
},
|
|
3394
3408
|
webpSrcSet() {
|
|
3395
3409
|
var e;
|
|
@@ -3424,23 +3438,23 @@ const Ti = ["srcset"], Ri = ["alt", "role", "src", "srcset", "sizes"], ji = {
|
|
|
3424
3438
|
};
|
|
3425
3439
|
function Oi(e, t, n, r, o, i) {
|
|
3426
3440
|
var u, p, h, m;
|
|
3427
|
-
return
|
|
3428
|
-
|
|
3429
|
-
e.webpSrcSet ? (
|
|
3441
|
+
return b(), x(re, null, [
|
|
3442
|
+
rn("picture", null, [
|
|
3443
|
+
e.webpSrcSet ? (b(), x("source", {
|
|
3430
3444
|
key: 0,
|
|
3431
3445
|
type: "image/webp",
|
|
3432
3446
|
srcset: e.webpSrcSet
|
|
3433
3447
|
}, null, 8, Ti)) : P("v-if", !0),
|
|
3434
|
-
|
|
3448
|
+
rn("img", {
|
|
3435
3449
|
loading: "lazy",
|
|
3436
3450
|
alt: e.altText,
|
|
3437
3451
|
role: e.altText ? "presentation" : void 0,
|
|
3438
|
-
style:
|
|
3452
|
+
style: on({
|
|
3439
3453
|
objectPosition: e.backgroundPosition || "center",
|
|
3440
3454
|
objectFit: e.backgroundSize || "cover",
|
|
3441
3455
|
...e.aspectRatioCss
|
|
3442
3456
|
}),
|
|
3443
|
-
class:
|
|
3457
|
+
class: Er(
|
|
3444
3458
|
e._classStringToObject(
|
|
3445
3459
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
3446
3460
|
)
|
|
@@ -3450,28 +3464,28 @@ function Oi(e, t, n, r, o, i) {
|
|
|
3450
3464
|
sizes: e.sizes
|
|
3451
3465
|
}, null, 14, Ri)
|
|
3452
3466
|
]),
|
|
3453
|
-
e.aspectRatio && !(((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && e.fitContent) ? (
|
|
3467
|
+
e.aspectRatio && !(((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && e.fitContent) ? (b(), x("div", {
|
|
3454
3468
|
key: 0,
|
|
3455
3469
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
3456
|
-
style:
|
|
3470
|
+
style: on({
|
|
3457
3471
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3458
3472
|
})
|
|
3459
3473
|
}, null, 4)) : P("v-if", !0),
|
|
3460
3474
|
((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && e.fitContent ? Ee(e.$slots, "default", { key: 1 }, void 0, !0) : P("v-if", !0),
|
|
3461
|
-
!e.fitContent && e.$slots.default ? (
|
|
3475
|
+
!e.fitContent && e.$slots.default ? (b(), x("div", ji, [
|
|
3462
3476
|
Ee(e.$slots, "default", {}, void 0, !0)
|
|
3463
3477
|
])) : P("v-if", !0)
|
|
3464
3478
|
], 64);
|
|
3465
3479
|
}
|
|
3466
|
-
const $i = /* @__PURE__ */
|
|
3480
|
+
const $i = /* @__PURE__ */ _(Ii, [["render", Oi], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), Pi = N({
|
|
3467
3481
|
name: "builder-section-component",
|
|
3468
3482
|
props: ["attributes", "maxWidth"],
|
|
3469
3483
|
data() {
|
|
3470
|
-
return { filterAttrs:
|
|
3484
|
+
return { filterAttrs: wt };
|
|
3471
3485
|
}
|
|
3472
3486
|
});
|
|
3473
|
-
function
|
|
3474
|
-
return
|
|
3487
|
+
function Ni(e, t, n, r, o, i) {
|
|
3488
|
+
return b(), x("section", oe({
|
|
3475
3489
|
style: {
|
|
3476
3490
|
width: "100%",
|
|
3477
3491
|
alignSelf: "stretch",
|
|
@@ -3488,12 +3502,12 @@ function _i(e, t, n, r, o, i) {
|
|
|
3488
3502
|
Ee(e.$slots, "default")
|
|
3489
3503
|
], 16);
|
|
3490
3504
|
}
|
|
3491
|
-
const
|
|
3505
|
+
const _i = /* @__PURE__ */ _(Pi, [["render", Ni], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), Mi = (e) => {
|
|
3492
3506
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3493
3507
|
return e;
|
|
3494
3508
|
const t = e.split(".");
|
|
3495
3509
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3496
|
-
},
|
|
3510
|
+
}, Nr = ({
|
|
3497
3511
|
name: e,
|
|
3498
3512
|
canTrack: t
|
|
3499
3513
|
}) => {
|
|
@@ -3504,14 +3518,14 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3504
3518
|
ee.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3505
3519
|
return;
|
|
3506
3520
|
}
|
|
3507
|
-
}, _r = async (e) =>
|
|
3521
|
+
}, _r = async (e) => Nr(e), Ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ve).join("; "), Wi = [["secure", ""], ["SameSite", "None"]], Vi = ({
|
|
3508
3522
|
name: e,
|
|
3509
3523
|
value: t,
|
|
3510
3524
|
expires: n
|
|
3511
3525
|
}) => {
|
|
3512
|
-
const o = (J() ? location.protocol === "https:" : !0) ?
|
|
3513
|
-
return
|
|
3514
|
-
},
|
|
3526
|
+
const o = (J() ? location.protocol === "https:" : !0) ? Wi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], u = [[e, t], ...i, ["path", "/"], ["domain", Mi(window.location.hostname)], ...o];
|
|
3527
|
+
return Ui(u);
|
|
3528
|
+
}, Mr = async ({
|
|
3515
3529
|
name: e,
|
|
3516
3530
|
value: t,
|
|
3517
3531
|
expires: n,
|
|
@@ -3520,7 +3534,7 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3520
3534
|
try {
|
|
3521
3535
|
if (!r)
|
|
3522
3536
|
return;
|
|
3523
|
-
const o =
|
|
3537
|
+
const o = Vi({
|
|
3524
3538
|
name: e,
|
|
3525
3539
|
value: t,
|
|
3526
3540
|
expires: n
|
|
@@ -3529,20 +3543,20 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3529
3543
|
} catch (o) {
|
|
3530
3544
|
ee.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3531
3545
|
}
|
|
3532
|
-
},
|
|
3546
|
+
}, Li = "builder.tests", Sn = (e) => `${Li}.${e}`, Hi = ({
|
|
3533
3547
|
contentId: e
|
|
3534
3548
|
}) => _r({
|
|
3535
3549
|
name: Sn(e),
|
|
3536
3550
|
canTrack: !0
|
|
3537
3551
|
}), Ki = ({
|
|
3538
3552
|
contentId: e
|
|
3539
|
-
}) =>
|
|
3553
|
+
}) => Nr({
|
|
3540
3554
|
name: Sn(e),
|
|
3541
3555
|
canTrack: !0
|
|
3542
3556
|
}), Gi = ({
|
|
3543
3557
|
contentId: e,
|
|
3544
3558
|
value: t
|
|
3545
|
-
}) =>
|
|
3559
|
+
}) => Mr({
|
|
3546
3560
|
name: Sn(e),
|
|
3547
3561
|
value: t,
|
|
3548
3562
|
canTrack: !0
|
|
@@ -3559,7 +3573,7 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3559
3573
|
return i;
|
|
3560
3574
|
}
|
|
3561
3575
|
return e;
|
|
3562
|
-
},
|
|
3576
|
+
}, Wr = (e) => {
|
|
3563
3577
|
const t = zi(e);
|
|
3564
3578
|
return Gi({
|
|
3565
3579
|
contentId: e.id,
|
|
@@ -3592,7 +3606,7 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3592
3606
|
return e;
|
|
3593
3607
|
const n = Ki({
|
|
3594
3608
|
contentId: e.id
|
|
3595
|
-
}) ||
|
|
3609
|
+
}) || Wr({
|
|
3596
3610
|
variations: e.variations,
|
|
3597
3611
|
id: e.id
|
|
3598
3612
|
}), r = Vr({
|
|
@@ -3611,7 +3625,7 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3611
3625
|
return e;
|
|
3612
3626
|
const r = await Hi({
|
|
3613
3627
|
contentId: e.id
|
|
3614
|
-
}) ||
|
|
3628
|
+
}) || Wr({
|
|
3615
3629
|
variations: e.variations,
|
|
3616
3630
|
id: e.id
|
|
3617
3631
|
}), o = Vr({
|
|
@@ -3876,7 +3890,7 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3876
3890
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3877
3891
|
advanced: !0
|
|
3878
3892
|
}]
|
|
3879
|
-
}, Qi =
|
|
3893
|
+
}, Qi = N({
|
|
3880
3894
|
name: "builder-custom-code",
|
|
3881
3895
|
props: ["replaceNodes", "code"],
|
|
3882
3896
|
data() {
|
|
@@ -3923,9 +3937,9 @@ const Ni = /* @__PURE__ */ N(Pi, [["render", _i], ["__file", "/home/runner/work/
|
|
|
3923
3937
|
}
|
|
3924
3938
|
}), es = ["innerHTML"];
|
|
3925
3939
|
function ts(e, t, n, r, o, i) {
|
|
3926
|
-
return
|
|
3940
|
+
return b(), x("div", {
|
|
3927
3941
|
ref: "elementRef",
|
|
3928
|
-
class:
|
|
3942
|
+
class: Er(
|
|
3929
3943
|
e._classStringToObject(
|
|
3930
3944
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
3931
3945
|
)
|
|
@@ -3933,7 +3947,7 @@ function ts(e, t, n, r, o, i) {
|
|
|
3933
3947
|
innerHTML: e.code
|
|
3934
3948
|
}, null, 10, es);
|
|
3935
3949
|
}
|
|
3936
|
-
const ns = /* @__PURE__ */
|
|
3950
|
+
const ns = /* @__PURE__ */ _(Qi, [["render", ts], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), rs = {
|
|
3937
3951
|
name: "Embed",
|
|
3938
3952
|
static: !0,
|
|
3939
3953
|
inputs: [{
|
|
@@ -3958,7 +3972,7 @@ const ns = /* @__PURE__ */ N(Qi, [["render", ts], ["__file", "/home/runner/work/
|
|
|
3958
3972
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3959
3973
|
hideFromUI: !0
|
|
3960
3974
|
}]
|
|
3961
|
-
}, os = ["text/javascript", "application/javascript", "application/ecmascript"], is = (e) => os.includes(e.type), ss =
|
|
3975
|
+
}, os = ["text/javascript", "application/javascript", "application/ecmascript"], is = (e) => os.includes(e.type), ss = N({
|
|
3962
3976
|
name: "builder-embed",
|
|
3963
3977
|
props: ["content"],
|
|
3964
3978
|
data() {
|
|
@@ -4002,13 +4016,13 @@ const ns = /* @__PURE__ */ N(Qi, [["render", ts], ["__file", "/home/runner/work/
|
|
|
4002
4016
|
}
|
|
4003
4017
|
}), us = ["innerHTML"];
|
|
4004
4018
|
function as(e, t, n, r, o, i) {
|
|
4005
|
-
return
|
|
4019
|
+
return b(), x("div", {
|
|
4006
4020
|
class: "builder-embed",
|
|
4007
4021
|
ref: "elem",
|
|
4008
4022
|
innerHTML: e.content
|
|
4009
4023
|
}, null, 8, us);
|
|
4010
4024
|
}
|
|
4011
|
-
const ls = /* @__PURE__ */
|
|
4025
|
+
const ls = /* @__PURE__ */ _(ss, [["render", as], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), cs = {
|
|
4012
4026
|
name: "Fragment",
|
|
4013
4027
|
static: !0,
|
|
4014
4028
|
hidden: !0,
|
|
@@ -4037,13 +4051,13 @@ const ls = /* @__PURE__ */ N(ss, [["render", as], ["__file", "/home/runner/work/
|
|
|
4037
4051
|
function n(u, p = 6e4) {
|
|
4038
4052
|
return new Promise((h, m) => {
|
|
4039
4053
|
const v = document.createElement("img");
|
|
4040
|
-
let
|
|
4054
|
+
let A = !1;
|
|
4041
4055
|
v.onload = () => {
|
|
4042
|
-
|
|
4043
|
-
}, v.addEventListener("error", (
|
|
4044
|
-
console.warn("Image load failed",
|
|
4056
|
+
A = !0, h(v);
|
|
4057
|
+
}, v.addEventListener("error", (I) => {
|
|
4058
|
+
console.warn("Image load failed", I.error), m(I.error);
|
|
4045
4059
|
}), v.src = u, setTimeout(() => {
|
|
4046
|
-
|
|
4060
|
+
A || m(new Error("Image load timed out"));
|
|
4047
4061
|
}, p);
|
|
4048
4062
|
});
|
|
4049
4063
|
}
|
|
@@ -4127,7 +4141,7 @@ const ls = /* @__PURE__ */ N(ss, [["render", as], ["__file", "/home/runner/work/
|
|
|
4127
4141
|
}],
|
|
4128
4142
|
noWrap: !0,
|
|
4129
4143
|
static: !0
|
|
4130
|
-
}, hs =
|
|
4144
|
+
}, hs = N({
|
|
4131
4145
|
name: "builder-img-component",
|
|
4132
4146
|
props: [
|
|
4133
4147
|
"backgroundSize",
|
|
@@ -4138,11 +4152,11 @@ const ls = /* @__PURE__ */ N(ss, [["render", as], ["__file", "/home/runner/work/
|
|
|
4138
4152
|
"attributes"
|
|
4139
4153
|
],
|
|
4140
4154
|
data() {
|
|
4141
|
-
return { isEditing: ge, filterAttrs:
|
|
4155
|
+
return { isEditing: ge, filterAttrs: wt };
|
|
4142
4156
|
}
|
|
4143
4157
|
}), fs = ["alt", "src"];
|
|
4144
4158
|
function ms(e, t, n, r, o, i) {
|
|
4145
|
-
return
|
|
4159
|
+
return b(), x("img", oe({
|
|
4146
4160
|
style: {
|
|
4147
4161
|
objectFit: e.backgroundSize || "cover",
|
|
4148
4162
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -4152,7 +4166,7 @@ function ms(e, t, n, r, o, i) {
|
|
|
4152
4166
|
src: e.imgSrc || e.image
|
|
4153
4167
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ot(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, fs);
|
|
4154
4168
|
}
|
|
4155
|
-
const gs = /* @__PURE__ */
|
|
4169
|
+
const gs = /* @__PURE__ */ _(hs, [["render", ms], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), ys = {
|
|
4156
4170
|
name: "Core:Section",
|
|
4157
4171
|
static: !0,
|
|
4158
4172
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4242,13 +4256,13 @@ const gs = /* @__PURE__ */ N(hs, [["render", ms], ["__file", "/home/runner/work/
|
|
|
4242
4256
|
height: "auto",
|
|
4243
4257
|
textAlign: "center"
|
|
4244
4258
|
}
|
|
4245
|
-
}, Cs =
|
|
4259
|
+
}, Cs = N({
|
|
4246
4260
|
name: "builder-text",
|
|
4247
4261
|
props: ["text"]
|
|
4248
4262
|
}), bs = ["innerHTML"];
|
|
4249
4263
|
function ks(e, t, n, r, o, i) {
|
|
4250
4264
|
var u;
|
|
4251
|
-
return
|
|
4265
|
+
return b(), x("div", {
|
|
4252
4266
|
class: "builder-text",
|
|
4253
4267
|
innerHTML: ((u = e.text) == null ? void 0 : u.toString()) || "",
|
|
4254
4268
|
style: {
|
|
@@ -4256,7 +4270,7 @@ function ks(e, t, n, r, o, i) {
|
|
|
4256
4270
|
}
|
|
4257
4271
|
}, null, 8, bs);
|
|
4258
4272
|
}
|
|
4259
|
-
const Es = /* @__PURE__ */
|
|
4273
|
+
const Es = /* @__PURE__ */ _(Cs, [["render", ks], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), Ss = {
|
|
4260
4274
|
name: "Video",
|
|
4261
4275
|
canHaveChildren: !0,
|
|
4262
4276
|
defaultStyles: {
|
|
@@ -4337,7 +4351,7 @@ const Es = /* @__PURE__ */ N(Cs, [["render", ks], ["__file", "/home/runner/work/
|
|
|
4337
4351
|
defaultValue: !0,
|
|
4338
4352
|
advanced: !0
|
|
4339
4353
|
}]
|
|
4340
|
-
}, Fs =
|
|
4354
|
+
}, Fs = N({
|
|
4341
4355
|
name: "builder-video",
|
|
4342
4356
|
props: [
|
|
4343
4357
|
"autoPlay",
|
|
@@ -4406,9 +4420,9 @@ const Es = /* @__PURE__ */ N(Cs, [["render", ks], ["__file", "/home/runner/work/
|
|
|
4406
4420
|
}
|
|
4407
4421
|
};
|
|
4408
4422
|
function Ts(e, t, n, r, o, i) {
|
|
4409
|
-
var u, p, h, m, v,
|
|
4410
|
-
return
|
|
4411
|
-
|
|
4423
|
+
var u, p, h, m, v, A, I;
|
|
4424
|
+
return b(), x("div", ws, [
|
|
4425
|
+
rn("video", oe({
|
|
4412
4426
|
class: "builder-video",
|
|
4413
4427
|
preload: e.preload || "metadata",
|
|
4414
4428
|
style: {
|
|
@@ -4426,31 +4440,31 @@ function Ts(e, t, n, r, o, i) {
|
|
|
4426
4440
|
src: e.video || "no-src",
|
|
4427
4441
|
poster: e.posterImage
|
|
4428
4442
|
}, e.spreadProps), [
|
|
4429
|
-
e.lazyLoad ? P("v-if", !0) : (
|
|
4443
|
+
e.lazyLoad ? P("v-if", !0) : (b(), x("source", {
|
|
4430
4444
|
key: 0,
|
|
4431
4445
|
type: "video/mp4",
|
|
4432
4446
|
src: e.video
|
|
4433
4447
|
}, null, 8, Ds))
|
|
4434
4448
|
], 16, Bs),
|
|
4435
|
-
e.aspectRatio && !(e.fitContent && ((h = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : h.length)) ? (
|
|
4449
|
+
e.aspectRatio && !(e.fitContent && ((h = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : h.length)) ? (b(), x("div", {
|
|
4436
4450
|
key: 0,
|
|
4437
|
-
style:
|
|
4451
|
+
style: on({
|
|
4438
4452
|
width: "100%",
|
|
4439
4453
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4440
4454
|
pointerEvents: "none",
|
|
4441
4455
|
fontSize: "0px"
|
|
4442
4456
|
})
|
|
4443
4457
|
}, null, 4)) : P("v-if", !0),
|
|
4444
|
-
((v = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : v.length) && e.fitContent ? (
|
|
4458
|
+
((v = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : v.length) && e.fitContent ? (b(), x("div", xs, [
|
|
4445
4459
|
Ee(e.$slots, "default")
|
|
4446
4460
|
])) : P("v-if", !0),
|
|
4447
|
-
((
|
|
4461
|
+
((I = (A = e.builderBlock) == null ? void 0 : A.children) == null ? void 0 : I.length) && !e.fitContent ? (b(), x("div", Is, [
|
|
4448
4462
|
Ee(e.$slots, "default")
|
|
4449
4463
|
])) : P("v-if", !0)
|
|
4450
4464
|
]);
|
|
4451
4465
|
}
|
|
4452
|
-
const Rs = /* @__PURE__ */
|
|
4453
|
-
component:
|
|
4466
|
+
const Rs = /* @__PURE__ */ _(Fs, [["render", Ts], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), dr = () => [{
|
|
4467
|
+
component: Eo,
|
|
4454
4468
|
...Yi
|
|
4455
4469
|
}, {
|
|
4456
4470
|
component: Si,
|
|
@@ -4471,10 +4485,10 @@ const Rs = /* @__PURE__ */ N(Fs, [["render", Ts], ["__file", "/home/runner/work/
|
|
|
4471
4485
|
component: gs,
|
|
4472
4486
|
...ds
|
|
4473
4487
|
}, {
|
|
4474
|
-
component:
|
|
4488
|
+
component: _i,
|
|
4475
4489
|
...ys
|
|
4476
4490
|
}, {
|
|
4477
|
-
component:
|
|
4491
|
+
component: _u,
|
|
4478
4492
|
...vs
|
|
4479
4493
|
}, {
|
|
4480
4494
|
component: Es,
|
|
@@ -4484,15 +4498,15 @@ const Rs = /* @__PURE__ */ N(Fs, [["render", Ts], ["__file", "/home/runner/work/
|
|
|
4484
4498
|
...Ss
|
|
4485
4499
|
}], hr = [], js = (e) => ({
|
|
4486
4500
|
type: "builder.registerComponent",
|
|
4487
|
-
data:
|
|
4501
|
+
data: cn(e)
|
|
4488
4502
|
}), Os = (e) => {
|
|
4489
4503
|
const t = e.toString().trim();
|
|
4490
4504
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4491
|
-
}, $s = (e) => typeof e == "function" ? Os(e) :
|
|
4505
|
+
}, $s = (e) => typeof e == "function" ? Os(e) : pt(e), cn = ({
|
|
4492
4506
|
inputs: e,
|
|
4493
4507
|
...t
|
|
4494
4508
|
}) => ({
|
|
4495
|
-
...
|
|
4509
|
+
...pt(t),
|
|
4496
4510
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4497
4511
|
...r,
|
|
4498
4512
|
[o]: $s(i)
|
|
@@ -4553,7 +4567,7 @@ const Rs = /* @__PURE__ */ N(Fs, [["render", Ts], ["__file", "/home/runner/work/
|
|
|
4553
4567
|
}).join('');
|
|
4554
4568
|
styleEl.innerHTML = newStyleStr;
|
|
4555
4569
|
}
|
|
4556
|
-
}`,
|
|
4570
|
+
}`, Ns = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4557
4571
|
if (!navigator.cookieEnabled) {
|
|
4558
4572
|
return;
|
|
4559
4573
|
}
|
|
@@ -4587,31 +4601,31 @@ const Rs = /* @__PURE__ */ N(Fs, [["render", Ts], ["__file", "/home/runner/work/
|
|
|
4587
4601
|
thisScriptEl?.remove();
|
|
4588
4602
|
}
|
|
4589
4603
|
return;
|
|
4590
|
-
}`, Lr = "builderIoAbTest",
|
|
4604
|
+
}`, Lr = "builderIoAbTest", Hr = "builderIoRenderContent", kt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4591
4605
|
...t,
|
|
4592
4606
|
testVariationId: t.id,
|
|
4593
4607
|
id: e == null ? void 0 : e.id
|
|
4594
|
-
})),
|
|
4608
|
+
})), _s = ({
|
|
4595
4609
|
canTrack: e,
|
|
4596
4610
|
content: t
|
|
4597
|
-
}) => !(!(
|
|
4611
|
+
}) => !(!(kt(t).length > 0) || !e), Ms = (e) => e === "react" || e === "reactNative", Kr = Ms(ae), Us = () => `
|
|
4598
4612
|
window.${Lr} = ${Ps}
|
|
4599
|
-
window.${
|
|
4600
|
-
`,
|
|
4613
|
+
window.${Hr} = ${Ns}
|
|
4614
|
+
`, Ws = (e, t) => `
|
|
4601
4615
|
window.${Lr}(
|
|
4602
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4603
|
-
)`,
|
|
4616
|
+
"${t}",${JSON.stringify(e)}, ${Kr}
|
|
4617
|
+
)`, Vs = ({
|
|
4604
4618
|
contentId: e,
|
|
4605
4619
|
variationId: t
|
|
4606
|
-
}) => `window.${
|
|
4607
|
-
"${t}", "${e}", ${
|
|
4608
|
-
)`,
|
|
4620
|
+
}) => `window.${Hr}(
|
|
4621
|
+
"${t}", "${e}", ${Kr}
|
|
4622
|
+
)`, Ls = N({
|
|
4609
4623
|
render() {
|
|
4610
4624
|
return br("script", { id: this.id, innerHTML: this.scriptStr });
|
|
4611
4625
|
},
|
|
4612
4626
|
name: "inlined-script",
|
|
4613
4627
|
props: ["scriptStr", "id"]
|
|
4614
|
-
}),
|
|
4628
|
+
}), Gr = /* @__PURE__ */ _(Ls, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]);
|
|
4615
4629
|
function Hs() {
|
|
4616
4630
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4617
4631
|
}
|
|
@@ -4622,13 +4636,13 @@ function Ks() {
|
|
|
4622
4636
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4623
4637
|
return e;
|
|
4624
4638
|
}
|
|
4625
|
-
const
|
|
4626
|
-
function
|
|
4639
|
+
const zr = Ks();
|
|
4640
|
+
function Et(e, t = null, n = ".") {
|
|
4627
4641
|
return Object.keys(e).reduce((r, o) => {
|
|
4628
4642
|
const i = e[o], u = [t, o].filter(Boolean).join(n);
|
|
4629
4643
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4630
4644
|
...r,
|
|
4631
|
-
...
|
|
4645
|
+
...Et(i, u, n)
|
|
4632
4646
|
} : {
|
|
4633
4647
|
...r,
|
|
4634
4648
|
[u]: i
|
|
@@ -4640,10 +4654,10 @@ const Gs = "v3", fr = "builder.", zs = "options.", Xs = (e) => {
|
|
|
4640
4654
|
return e.forEach((n, r) => {
|
|
4641
4655
|
t[r] = n;
|
|
4642
4656
|
}), t;
|
|
4643
|
-
},
|
|
4657
|
+
}, Xr = (e) => {
|
|
4644
4658
|
if (!e)
|
|
4645
4659
|
return {};
|
|
4646
|
-
const t =
|
|
4660
|
+
const t = Jr(e), n = {};
|
|
4647
4661
|
return Object.keys(t).forEach((r) => {
|
|
4648
4662
|
if (r.startsWith(fr)) {
|
|
4649
4663
|
const o = r.replace(fr, "").replace(zs, "");
|
|
@@ -4654,8 +4668,8 @@ const Gs = "v3", fr = "builder.", zs = "options.", Xs = (e) => {
|
|
|
4654
4668
|
if (!J())
|
|
4655
4669
|
return {};
|
|
4656
4670
|
const e = new URLSearchParams(window.location.search);
|
|
4657
|
-
return
|
|
4658
|
-
},
|
|
4671
|
+
return Xr(e);
|
|
4672
|
+
}, Jr = (e) => e instanceof URLSearchParams ? Xs(e) : e, mr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Fn = (e) => {
|
|
4659
4673
|
let {
|
|
4660
4674
|
noTraverse: t = !1
|
|
4661
4675
|
} = e;
|
|
@@ -4669,11 +4683,11 @@ const Gs = "v3", fr = "builder.", zs = "options.", Xs = (e) => {
|
|
|
4669
4683
|
enrich: h,
|
|
4670
4684
|
locale: m,
|
|
4671
4685
|
apiVersion: v = Gs,
|
|
4672
|
-
fields:
|
|
4673
|
-
omit:
|
|
4686
|
+
fields: A,
|
|
4687
|
+
omit: I,
|
|
4674
4688
|
offset: $,
|
|
4675
4689
|
cacheSeconds: R,
|
|
4676
|
-
staleCacheSeconds:
|
|
4690
|
+
staleCacheSeconds: M,
|
|
4677
4691
|
sort: te,
|
|
4678
4692
|
includeUnpublished: Fe
|
|
4679
4693
|
} = e;
|
|
@@ -4683,21 +4697,21 @@ const Gs = "v3", fr = "builder.", zs = "options.", Xs = (e) => {
|
|
|
4683
4697
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
|
|
4684
4698
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4685
4699
|
const E = new URL(`https://cdn.builder.io/api/${v}/content/${i}?apiKey=${u}&limit=${n}&noTraverse=${t}&includeRefs=${p}${m ? `&locale=${m}` : ""}${h ? `&enrich=${h}` : ""}`);
|
|
4686
|
-
if (E.searchParams.set("omit",
|
|
4687
|
-
const ie =
|
|
4700
|
+
if (E.searchParams.set("omit", I || "meta.componentsUsed"), A && E.searchParams.set("fields", A), Number.isFinite($) && $ > -1 && E.searchParams.set("offset", String(Math.floor($))), typeof Fe == "boolean" && E.searchParams.set("includeUnpublished", String(Fe)), R && mr(R) && E.searchParams.set("cacheSeconds", String(R)), M && mr(M) && E.searchParams.set("staleCacheSeconds", String(M)), te) {
|
|
4701
|
+
const ie = Et({
|
|
4688
4702
|
sort: te
|
|
4689
4703
|
});
|
|
4690
4704
|
for (const j in ie)
|
|
4691
4705
|
E.searchParams.set(j, JSON.stringify(ie[j]));
|
|
4692
4706
|
}
|
|
4693
|
-
const
|
|
4707
|
+
const We = {
|
|
4694
4708
|
...Js(),
|
|
4695
|
-
...
|
|
4696
|
-
},
|
|
4697
|
-
for (const ie in
|
|
4698
|
-
E.searchParams.set(ie, String(
|
|
4709
|
+
...Jr(e.options || {})
|
|
4710
|
+
}, Ve = Et(We);
|
|
4711
|
+
for (const ie in Ve)
|
|
4712
|
+
E.searchParams.set(ie, String(Ve[ie]));
|
|
4699
4713
|
if (r && E.searchParams.set("userAttributes", JSON.stringify(r)), o) {
|
|
4700
|
-
const ie =
|
|
4714
|
+
const ie = Et({
|
|
4701
4715
|
query: o
|
|
4702
4716
|
});
|
|
4703
4717
|
for (const j in ie)
|
|
@@ -4705,16 +4719,16 @@ const Gs = "v3", fr = "builder.", zs = "options.", Xs = (e) => {
|
|
|
4705
4719
|
}
|
|
4706
4720
|
return E;
|
|
4707
4721
|
}, Ys = (e) => "results" in e;
|
|
4708
|
-
async function
|
|
4709
|
-
const t = await
|
|
4722
|
+
async function It(e) {
|
|
4723
|
+
const t = await Yr({
|
|
4710
4724
|
...e,
|
|
4711
4725
|
limit: 1
|
|
4712
4726
|
});
|
|
4713
4727
|
return t && t.results[0] || null;
|
|
4714
4728
|
}
|
|
4715
|
-
const
|
|
4729
|
+
const Vu = It, qs = async (e) => {
|
|
4716
4730
|
const t = Fn(e);
|
|
4717
|
-
return await (await
|
|
4731
|
+
return await (await zr(t.href)).json();
|
|
4718
4732
|
}, Zs = async (e, t, n = Fn(e)) => {
|
|
4719
4733
|
const r = ut(e.canTrack);
|
|
4720
4734
|
if (n.search.includes("preview="), !r || !(J() || ae === "reactNative"))
|
|
@@ -4732,7 +4746,7 @@ const Wu = xt, qs = async (e) => {
|
|
|
4732
4746
|
}
|
|
4733
4747
|
return t;
|
|
4734
4748
|
};
|
|
4735
|
-
async function
|
|
4749
|
+
async function Yr(e) {
|
|
4736
4750
|
try {
|
|
4737
4751
|
const t = Fn(e), n = await qs(e);
|
|
4738
4752
|
return Ys(n) ? Zs(e, n) : (ee.error("Error fetching data. ", {
|
|
@@ -4744,7 +4758,7 @@ async function Jr(e) {
|
|
|
4744
4758
|
return ee.error("Error fetching data. ", t), null;
|
|
4745
4759
|
}
|
|
4746
4760
|
}
|
|
4747
|
-
const
|
|
4761
|
+
const Lu = Yr;
|
|
4748
4762
|
function Qs() {
|
|
4749
4763
|
return !J() || ge() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
4750
4764
|
}
|
|
@@ -4754,16 +4768,16 @@ function eu() {
|
|
|
4754
4768
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4755
4769
|
});
|
|
4756
4770
|
}
|
|
4757
|
-
function
|
|
4771
|
+
function qr() {
|
|
4758
4772
|
return eu().replace(/-/g, "");
|
|
4759
4773
|
}
|
|
4760
|
-
const
|
|
4774
|
+
const Zr = "builderSessionId", tu = async ({
|
|
4761
4775
|
canTrack: e
|
|
4762
4776
|
}) => {
|
|
4763
4777
|
if (!e)
|
|
4764
4778
|
return;
|
|
4765
4779
|
const t = await _r({
|
|
4766
|
-
name:
|
|
4780
|
+
name: Zr,
|
|
4767
4781
|
canTrack: e
|
|
4768
4782
|
});
|
|
4769
4783
|
if (ve(t))
|
|
@@ -4775,20 +4789,20 @@ const qr = "builderSessionId", tu = async ({
|
|
|
4775
4789
|
canTrack: e
|
|
4776
4790
|
}), n;
|
|
4777
4791
|
}
|
|
4778
|
-
}, nu = () =>
|
|
4792
|
+
}, nu = () => qr(), ru = ({
|
|
4779
4793
|
id: e,
|
|
4780
4794
|
canTrack: t
|
|
4781
|
-
}) =>
|
|
4782
|
-
name:
|
|
4795
|
+
}) => Mr({
|
|
4796
|
+
name: Zr,
|
|
4783
4797
|
value: e,
|
|
4784
4798
|
canTrack: t
|
|
4785
|
-
}),
|
|
4799
|
+
}), Qr = () => J() && typeof localStorage < "u" ? localStorage : void 0, ou = ({
|
|
4786
4800
|
key: e,
|
|
4787
4801
|
canTrack: t
|
|
4788
4802
|
}) => {
|
|
4789
4803
|
var n;
|
|
4790
4804
|
try {
|
|
4791
|
-
return t ? (n =
|
|
4805
|
+
return t ? (n = Qr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4792
4806
|
} catch (r) {
|
|
4793
4807
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4794
4808
|
return;
|
|
@@ -4800,17 +4814,17 @@ const qr = "builderSessionId", tu = async ({
|
|
|
4800
4814
|
}) => {
|
|
4801
4815
|
var r;
|
|
4802
4816
|
try {
|
|
4803
|
-
t && ((r =
|
|
4817
|
+
t && ((r = Qr()) == null || r.setItem(e, n));
|
|
4804
4818
|
} catch (o) {
|
|
4805
4819
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4806
4820
|
}
|
|
4807
|
-
},
|
|
4821
|
+
}, eo = "builderVisitorId", su = ({
|
|
4808
4822
|
canTrack: e
|
|
4809
4823
|
}) => {
|
|
4810
4824
|
if (!e)
|
|
4811
4825
|
return;
|
|
4812
4826
|
const t = ou({
|
|
4813
|
-
key:
|
|
4827
|
+
key: eo,
|
|
4814
4828
|
canTrack: e
|
|
4815
4829
|
});
|
|
4816
4830
|
if (ve(t))
|
|
@@ -4822,11 +4836,11 @@ const qr = "builderSessionId", tu = async ({
|
|
|
4822
4836
|
canTrack: e
|
|
4823
4837
|
}), n;
|
|
4824
4838
|
}
|
|
4825
|
-
}, uu = () =>
|
|
4839
|
+
}, uu = () => qr(), au = ({
|
|
4826
4840
|
id: e,
|
|
4827
4841
|
canTrack: t
|
|
4828
4842
|
}) => iu({
|
|
4829
|
-
key:
|
|
4843
|
+
key: eo,
|
|
4830
4844
|
value: e,
|
|
4831
4845
|
canTrack: t
|
|
4832
4846
|
}), lu = async ({
|
|
@@ -4863,11 +4877,11 @@ const qr = "builderSessionId", tu = async ({
|
|
|
4863
4877
|
...await lu({
|
|
4864
4878
|
canTrack: t
|
|
4865
4879
|
}),
|
|
4866
|
-
userAttributes:
|
|
4880
|
+
userAttributes: Fr(),
|
|
4867
4881
|
ownerId: n
|
|
4868
4882
|
}
|
|
4869
4883
|
});
|
|
4870
|
-
async function
|
|
4884
|
+
async function pn(e) {
|
|
4871
4885
|
if (!e.apiKey) {
|
|
4872
4886
|
ee.error("Missing API key for track call. Please provide your API key.");
|
|
4873
4887
|
return;
|
|
@@ -4886,7 +4900,7 @@ async function cn(e) {
|
|
|
4886
4900
|
console.error("Failed to track: ", t);
|
|
4887
4901
|
});
|
|
4888
4902
|
}
|
|
4889
|
-
const
|
|
4903
|
+
const Hu = (e) => pn({
|
|
4890
4904
|
...e,
|
|
4891
4905
|
canTrack: !0
|
|
4892
4906
|
});
|
|
@@ -4932,7 +4946,7 @@ const pu = (e, t, n = !0) => {
|
|
|
4932
4946
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4933
4947
|
}
|
|
4934
4948
|
};
|
|
4935
|
-
}, fu = "0.
|
|
4949
|
+
}, fu = "0.9.0", vr = {};
|
|
4936
4950
|
function mu(e, t) {
|
|
4937
4951
|
let n = vr[e];
|
|
4938
4952
|
if (n || (n = vr[e] = []), n.push(t), J()) {
|
|
@@ -4998,25 +5012,25 @@ const yu = (e = {}) => {
|
|
|
4998
5012
|
switch (r.type) {
|
|
4999
5013
|
case "builder.evaluate": {
|
|
5000
5014
|
const u = r.data.text, p = r.data.arguments || [], h = r.data.id, m = new Function(u);
|
|
5001
|
-
let v,
|
|
5015
|
+
let v, A = null;
|
|
5002
5016
|
try {
|
|
5003
5017
|
v = m.apply(null, p);
|
|
5004
|
-
} catch (
|
|
5005
|
-
|
|
5018
|
+
} catch (I) {
|
|
5019
|
+
A = I;
|
|
5006
5020
|
}
|
|
5007
|
-
|
|
5021
|
+
A ? (o = window.parent) == null || o.postMessage({
|
|
5008
5022
|
type: "builder.evaluateError",
|
|
5009
5023
|
data: {
|
|
5010
5024
|
id: h,
|
|
5011
|
-
error:
|
|
5025
|
+
error: A.message
|
|
5012
5026
|
}
|
|
5013
|
-
}, "*") : v && typeof v.then == "function" ? v.then((
|
|
5027
|
+
}, "*") : v && typeof v.then == "function" ? v.then((I) => {
|
|
5014
5028
|
var $;
|
|
5015
5029
|
($ = window.parent) == null || $.postMessage({
|
|
5016
5030
|
type: "builder.evaluateResult",
|
|
5017
5031
|
data: {
|
|
5018
5032
|
id: h,
|
|
5019
|
-
result:
|
|
5033
|
+
result: I
|
|
5020
5034
|
}
|
|
5021
5035
|
}, "*");
|
|
5022
5036
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
@@ -5030,10 +5044,11 @@ const yu = (e = {}) => {
|
|
|
5030
5044
|
}
|
|
5031
5045
|
}
|
|
5032
5046
|
})));
|
|
5033
|
-
}, vu =
|
|
5047
|
+
}, vu = N({
|
|
5034
5048
|
name: "enable-editor",
|
|
5035
5049
|
props: [
|
|
5036
5050
|
"builderContextSignal",
|
|
5051
|
+
"contentWrapper",
|
|
5037
5052
|
"model",
|
|
5038
5053
|
"context",
|
|
5039
5054
|
"canTrack",
|
|
@@ -5042,22 +5057,24 @@ const yu = (e = {}) => {
|
|
|
5042
5057
|
"includeRefs",
|
|
5043
5058
|
"enrich",
|
|
5044
5059
|
"content",
|
|
5045
|
-
"showContent"
|
|
5060
|
+
"showContent",
|
|
5061
|
+
"contentWrapperProps"
|
|
5046
5062
|
],
|
|
5047
5063
|
data() {
|
|
5048
5064
|
return {
|
|
5049
5065
|
forceReRenderCount: 0,
|
|
5050
5066
|
lastUpdated: 0,
|
|
5051
5067
|
shouldSendResetCookie: !1,
|
|
5068
|
+
ContentWrapper: this.contentWrapper || "div",
|
|
5052
5069
|
httpReqsData: {},
|
|
5053
5070
|
clicked: !1,
|
|
5054
|
-
builderContext:
|
|
5071
|
+
builderContext: sn
|
|
5055
5072
|
};
|
|
5056
5073
|
},
|
|
5057
5074
|
provide() {
|
|
5058
5075
|
const e = this;
|
|
5059
5076
|
return {
|
|
5060
|
-
[
|
|
5077
|
+
[sn.key]: e.builderContextSignal
|
|
5061
5078
|
};
|
|
5062
5079
|
},
|
|
5063
5080
|
mounted() {
|
|
@@ -5068,7 +5085,7 @@ const yu = (e = {}) => {
|
|
|
5068
5085
|
new CustomEvent("initeditingbldr")
|
|
5069
5086
|
), this.builderContextSignal.content && ut(this.canTrack)) {
|
|
5070
5087
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, u = (r = this.builderContextSignal.content) == null ? void 0 : r.id, p = this.apiKey;
|
|
5071
|
-
|
|
5088
|
+
pn({
|
|
5072
5089
|
type: "impression",
|
|
5073
5090
|
canTrack: !0,
|
|
5074
5091
|
contentId: u,
|
|
@@ -5194,7 +5211,7 @@ const yu = (e = {}) => {
|
|
|
5194
5211
|
evaluateJsCode() {
|
|
5195
5212
|
var t, n;
|
|
5196
5213
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5197
|
-
e &&
|
|
5214
|
+
e && St({
|
|
5198
5215
|
code: e,
|
|
5199
5216
|
context: this.context || {},
|
|
5200
5217
|
localState: void 0,
|
|
@@ -5206,7 +5223,7 @@ const yu = (e = {}) => {
|
|
|
5206
5223
|
var t, n;
|
|
5207
5224
|
if (this.builderContextSignal.content) {
|
|
5208
5225
|
const r = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, o = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5209
|
-
|
|
5226
|
+
pn({
|
|
5210
5227
|
type: "click",
|
|
5211
5228
|
canTrack: ut(this.canTrack),
|
|
5212
5229
|
contentId: o,
|
|
@@ -5221,7 +5238,7 @@ const yu = (e = {}) => {
|
|
|
5221
5238
|
evalExpression(e) {
|
|
5222
5239
|
return e.replace(
|
|
5223
5240
|
/{{([^}]+)}}/g,
|
|
5224
|
-
(t, n) =>
|
|
5241
|
+
(t, n) => St({
|
|
5225
5242
|
code: n,
|
|
5226
5243
|
context: this.context || {},
|
|
5227
5244
|
localState: void 0,
|
|
@@ -5231,7 +5248,7 @@ const yu = (e = {}) => {
|
|
|
5231
5248
|
);
|
|
5232
5249
|
},
|
|
5233
5250
|
handleRequest({ url: e, key: t }) {
|
|
5234
|
-
|
|
5251
|
+
zr(e).then((n) => n.json()).then((n) => {
|
|
5235
5252
|
var o, i;
|
|
5236
5253
|
const r = {
|
|
5237
5254
|
...this.builderContextSignal.rootState,
|
|
@@ -5261,7 +5278,7 @@ const yu = (e = {}) => {
|
|
|
5261
5278
|
"builder:component:stateChange",
|
|
5262
5279
|
{
|
|
5263
5280
|
detail: {
|
|
5264
|
-
state:
|
|
5281
|
+
state: pt(this.builderContextSignal.rootState),
|
|
5265
5282
|
ref: {
|
|
5266
5283
|
name: this.model
|
|
5267
5284
|
}
|
|
@@ -5296,7 +5313,7 @@ const yu = (e = {}) => {
|
|
|
5296
5313
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
5297
5314
|
`builder.preview.${n}`
|
|
5298
5315
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
5299
|
-
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) &&
|
|
5316
|
+
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) && It({
|
|
5300
5317
|
model: this.model,
|
|
5301
5318
|
apiKey: this.apiKey,
|
|
5302
5319
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -5314,30 +5331,34 @@ const yu = (e = {}) => {
|
|
|
5314
5331
|
return t;
|
|
5315
5332
|
}
|
|
5316
5333
|
}
|
|
5317
|
-
})
|
|
5318
|
-
function
|
|
5334
|
+
});
|
|
5335
|
+
function Au(e, t, n, r, o, i) {
|
|
5319
5336
|
var u, p, h;
|
|
5320
|
-
return e.builderContextSignal.content ? (
|
|
5337
|
+
return e.builderContextSignal.content ? (b(), H(kr(e.ContentWrapper), oe({
|
|
5321
5338
|
key: e.forceReRenderCount,
|
|
5322
5339
|
ref: "elementRef",
|
|
5323
|
-
onClick:
|
|
5340
|
+
onClick: (m) => e.onClick(m),
|
|
5324
5341
|
"builder-content-id": (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
5325
5342
|
"builder-model": e.model,
|
|
5326
5343
|
class: e._classStringToObject(
|
|
5327
5344
|
`variant-${((p = e.content) == null ? void 0 : p.testVariationId) || ((h = e.content) == null ? void 0 : h.id)}`
|
|
5328
5345
|
),
|
|
5329
|
-
onIniteditingbldr:
|
|
5330
|
-
onInitpreviewingbldr:
|
|
5346
|
+
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
5347
|
+
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
5331
5348
|
}, {
|
|
5332
5349
|
...e.showContent ? {} : {
|
|
5333
5350
|
hidden: !0,
|
|
5334
5351
|
"aria-hidden": !0
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5352
|
+
},
|
|
5353
|
+
...e.contentWrapperProps
|
|
5354
|
+
}), {
|
|
5355
|
+
default: at(() => [
|
|
5356
|
+
Ee(e.$slots, "default")
|
|
5357
|
+
]),
|
|
5358
|
+
_: 3
|
|
5359
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : P("v-if", !0);
|
|
5339
5360
|
}
|
|
5340
|
-
const
|
|
5361
|
+
const Cu = /* @__PURE__ */ _(vu, [["render", Au], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), bu = (e) => {
|
|
5341
5362
|
var i, u;
|
|
5342
5363
|
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;
|
|
5343
5364
|
let o = "";
|
|
@@ -5363,26 +5384,26 @@ font-weight: ${p};
|
|
|
5363
5384
|
`.trim());
|
|
5364
5385
|
}
|
|
5365
5386
|
return o;
|
|
5366
|
-
},
|
|
5387
|
+
}, ku = ({
|
|
5367
5388
|
customFonts: e
|
|
5368
5389
|
}) => {
|
|
5369
5390
|
var t;
|
|
5370
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5371
|
-
},
|
|
5391
|
+
return ((t = e == null ? void 0 : e.map((n) => bu(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5392
|
+
}, Eu = ({
|
|
5372
5393
|
cssCode: e,
|
|
5373
5394
|
contentId: t
|
|
5374
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5395
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Su = N({
|
|
5375
5396
|
name: "content-styles",
|
|
5376
|
-
components: { InlinedStyles:
|
|
5397
|
+
components: { InlinedStyles: xt },
|
|
5377
5398
|
props: ["cssCode", "contentId", "customFonts"],
|
|
5378
5399
|
data() {
|
|
5379
5400
|
return {
|
|
5380
5401
|
injectedStyles: `
|
|
5381
|
-
${
|
|
5402
|
+
${Eu({
|
|
5382
5403
|
cssCode: this.cssCode,
|
|
5383
5404
|
contentId: this.contentId
|
|
5384
5405
|
})}
|
|
5385
|
-
${
|
|
5406
|
+
${ku({
|
|
5386
5407
|
customFonts: this.customFonts
|
|
5387
5408
|
})}
|
|
5388
5409
|
|
|
@@ -5402,11 +5423,11 @@ ${Eu({
|
|
|
5402
5423
|
};
|
|
5403
5424
|
}
|
|
5404
5425
|
});
|
|
5405
|
-
function
|
|
5406
|
-
const u =
|
|
5407
|
-
return
|
|
5426
|
+
function Fu(e, t, n, r, o, i) {
|
|
5427
|
+
const u = V("inlined-styles");
|
|
5428
|
+
return b(), H(u, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
5408
5429
|
}
|
|
5409
|
-
const
|
|
5430
|
+
const wu = /* @__PURE__ */ _(Su, [["render", Fu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Bu = ({
|
|
5410
5431
|
content: e,
|
|
5411
5432
|
data: t,
|
|
5412
5433
|
locale: n
|
|
@@ -5423,7 +5444,7 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5423
5444
|
locale: n
|
|
5424
5445
|
} : {}
|
|
5425
5446
|
};
|
|
5426
|
-
},
|
|
5447
|
+
}, Du = ({
|
|
5427
5448
|
content: e,
|
|
5428
5449
|
data: t
|
|
5429
5450
|
}) => e ? {
|
|
@@ -5433,12 +5454,12 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5433
5454
|
...t
|
|
5434
5455
|
},
|
|
5435
5456
|
meta: e == null ? void 0 : e.meta
|
|
5436
|
-
} : void 0,
|
|
5457
|
+
} : void 0, xu = Ao, Iu = N({
|
|
5437
5458
|
name: "content-component",
|
|
5438
5459
|
components: {
|
|
5439
|
-
EnableEditor:
|
|
5440
|
-
InlinedScript:
|
|
5441
|
-
ContentStyles:
|
|
5460
|
+
EnableEditor: Cu,
|
|
5461
|
+
InlinedScript: Gr,
|
|
5462
|
+
ContentStyles: wu,
|
|
5442
5463
|
Blocks: En
|
|
5443
5464
|
},
|
|
5444
5465
|
props: [
|
|
@@ -5449,17 +5470,21 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5449
5470
|
"context",
|
|
5450
5471
|
"apiKey",
|
|
5451
5472
|
"apiVersion",
|
|
5473
|
+
"blocksWrapper",
|
|
5474
|
+
"blocksWrapperProps",
|
|
5452
5475
|
"model",
|
|
5453
5476
|
"canTrack",
|
|
5454
5477
|
"includeRefs",
|
|
5455
5478
|
"enrich",
|
|
5456
5479
|
"showContent",
|
|
5480
|
+
"contentWrapper",
|
|
5481
|
+
"contentWrapperProps",
|
|
5457
5482
|
"isSsrAbTest"
|
|
5458
5483
|
],
|
|
5459
5484
|
data() {
|
|
5460
5485
|
var e, t;
|
|
5461
5486
|
return {
|
|
5462
|
-
scriptStr:
|
|
5487
|
+
scriptStr: Vs({
|
|
5463
5488
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5464
5489
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5465
5490
|
}),
|
|
@@ -5471,19 +5496,19 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5471
5496
|
(n, { component: r, ...o }) => ({
|
|
5472
5497
|
...n,
|
|
5473
5498
|
[o.name]: {
|
|
5474
|
-
component:
|
|
5475
|
-
...
|
|
5499
|
+
component: xu(r),
|
|
5500
|
+
...cn(o)
|
|
5476
5501
|
}
|
|
5477
5502
|
}),
|
|
5478
5503
|
{}
|
|
5479
5504
|
),
|
|
5480
5505
|
builderContextSignal: {
|
|
5481
|
-
content:
|
|
5506
|
+
content: Du({
|
|
5482
5507
|
content: this.content,
|
|
5483
5508
|
data: this.data
|
|
5484
5509
|
}),
|
|
5485
5510
|
localState: void 0,
|
|
5486
|
-
rootState:
|
|
5511
|
+
rootState: Bu({
|
|
5487
5512
|
content: this.content,
|
|
5488
5513
|
data: this.data,
|
|
5489
5514
|
locale: this.locale
|
|
@@ -5499,11 +5524,13 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5499
5524
|
].reduce(
|
|
5500
5525
|
(n, { component: r, ...o }) => ({
|
|
5501
5526
|
...n,
|
|
5502
|
-
[o.name]:
|
|
5527
|
+
[o.name]: cn(o)
|
|
5503
5528
|
}),
|
|
5504
5529
|
{}
|
|
5505
5530
|
),
|
|
5506
|
-
inheritedStyles: {}
|
|
5531
|
+
inheritedStyles: {},
|
|
5532
|
+
BlocksWrapper: this.blocksWrapper || "div",
|
|
5533
|
+
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
5507
5534
|
},
|
|
5508
5535
|
TARGET: ae
|
|
5509
5536
|
};
|
|
@@ -5511,7 +5538,7 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5511
5538
|
provide() {
|
|
5512
5539
|
const e = this;
|
|
5513
5540
|
return {
|
|
5514
|
-
[
|
|
5541
|
+
[Sr.key]: {
|
|
5515
5542
|
registeredComponents: e.registeredComponents
|
|
5516
5543
|
}
|
|
5517
5544
|
};
|
|
@@ -5522,9 +5549,9 @@ const Bu = /* @__PURE__ */ N(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5522
5549
|
}
|
|
5523
5550
|
}
|
|
5524
5551
|
});
|
|
5525
|
-
function
|
|
5526
|
-
const u =
|
|
5527
|
-
return
|
|
5552
|
+
function Tu(e, t, n, r, o, i) {
|
|
5553
|
+
const u = V("inlined-script"), p = V("content-styles"), h = V("blocks"), m = V("enable-editor");
|
|
5554
|
+
return b(), H(m, oe({
|
|
5528
5555
|
content: e.content,
|
|
5529
5556
|
model: e.model,
|
|
5530
5557
|
context: e.context,
|
|
@@ -5534,37 +5561,39 @@ function Ru(e, t, n, r, o, i) {
|
|
|
5534
5561
|
includeRefs: e.includeRefs,
|
|
5535
5562
|
enrich: e.enrich,
|
|
5536
5563
|
showContent: e.showContent,
|
|
5537
|
-
builderContextSignal: e.builderContextSignal
|
|
5564
|
+
builderContextSignal: e.builderContextSignal,
|
|
5565
|
+
contentWrapper: e.contentWrapper,
|
|
5566
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5538
5567
|
}, {}), {
|
|
5539
|
-
default:
|
|
5540
|
-
var v,
|
|
5568
|
+
default: at(() => {
|
|
5569
|
+
var v, A, I, $, R, M, te;
|
|
5541
5570
|
return [
|
|
5542
|
-
e.isSsrAbTest ? (
|
|
5571
|
+
e.isSsrAbTest ? (b(), H(u, {
|
|
5543
5572
|
key: 0,
|
|
5544
5573
|
scriptStr: e.scriptStr
|
|
5545
5574
|
}, null, 8, ["scriptStr"])) : P("v-if", !0),
|
|
5546
|
-
e.TARGET !== "reactNative" ? (
|
|
5575
|
+
e.TARGET !== "reactNative" ? (b(), H(p, {
|
|
5547
5576
|
key: 1,
|
|
5548
5577
|
contentId: (v = e.builderContextSignal.content) == null ? void 0 : v.id,
|
|
5549
|
-
cssCode: (
|
|
5578
|
+
cssCode: (I = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : I.cssCode,
|
|
5550
5579
|
customFonts: (R = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : R.customFonts
|
|
5551
5580
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : P("v-if", !0),
|
|
5552
5581
|
Ie(h, {
|
|
5553
|
-
blocks: (te = (
|
|
5582
|
+
blocks: (te = (M = e.builderContextSignal.content) == null ? void 0 : M.data) == null ? void 0 : te.blocks,
|
|
5554
5583
|
context: e.builderContextSignal,
|
|
5555
5584
|
registeredComponents: e.registeredComponents
|
|
5556
5585
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
5557
5586
|
];
|
|
5558
5587
|
}),
|
|
5559
5588
|
_: 1
|
|
5560
|
-
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal"]);
|
|
5589
|
+
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
|
|
5561
5590
|
}
|
|
5562
|
-
const
|
|
5591
|
+
const Ru = /* @__PURE__ */ _(Iu, [["render", Tu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), ju = N({
|
|
5563
5592
|
name: "content-variants",
|
|
5564
5593
|
components: {
|
|
5565
|
-
InlinedScript:
|
|
5566
|
-
InlinedStyles:
|
|
5567
|
-
ContentComponent:
|
|
5594
|
+
InlinedScript: Gr,
|
|
5595
|
+
InlinedStyles: xt,
|
|
5596
|
+
ContentComponent: Ru
|
|
5568
5597
|
},
|
|
5569
5598
|
props: [
|
|
5570
5599
|
"canTrack",
|
|
@@ -5578,17 +5607,21 @@ const ju = /* @__PURE__ */ N(Tu, [["render", Ru], ["__file", "/home/runner/work/
|
|
|
5578
5607
|
"customComponents",
|
|
5579
5608
|
"locale",
|
|
5580
5609
|
"includeRefs",
|
|
5581
|
-
"enrich"
|
|
5610
|
+
"enrich",
|
|
5611
|
+
"blocksWrapper",
|
|
5612
|
+
"blocksWrapperProps",
|
|
5613
|
+
"contentWrapper",
|
|
5614
|
+
"contentWrapperProps"
|
|
5582
5615
|
],
|
|
5583
5616
|
data() {
|
|
5584
5617
|
return {
|
|
5585
|
-
shouldRenderVariants:
|
|
5618
|
+
shouldRenderVariants: _s({
|
|
5586
5619
|
canTrack: ut(this.canTrack),
|
|
5587
5620
|
content: this.content
|
|
5588
5621
|
}),
|
|
5589
5622
|
TARGET: ae,
|
|
5590
|
-
getScriptString:
|
|
5591
|
-
getVariants:
|
|
5623
|
+
getScriptString: Us,
|
|
5624
|
+
getVariants: kt
|
|
5592
5625
|
};
|
|
5593
5626
|
},
|
|
5594
5627
|
mounted() {
|
|
@@ -5597,8 +5630,8 @@ const ju = /* @__PURE__ */ N(Tu, [["render", Ru], ["__file", "/home/runner/work/
|
|
|
5597
5630
|
computed: {
|
|
5598
5631
|
updateCookieAndStylesScriptStr() {
|
|
5599
5632
|
var e;
|
|
5600
|
-
return
|
|
5601
|
-
|
|
5633
|
+
return Ws(
|
|
5634
|
+
kt(this.content).map((t) => ({
|
|
5602
5635
|
id: t.testVariationId,
|
|
5603
5636
|
testRatio: t.testRatio
|
|
5604
5637
|
})),
|
|
@@ -5606,7 +5639,7 @@ const ju = /* @__PURE__ */ N(Tu, [["render", Ru], ["__file", "/home/runner/work/
|
|
|
5606
5639
|
);
|
|
5607
5640
|
},
|
|
5608
5641
|
hideVariantsStyleString() {
|
|
5609
|
-
return
|
|
5642
|
+
return kt(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5610
5643
|
},
|
|
5611
5644
|
defaultContent() {
|
|
5612
5645
|
var e;
|
|
@@ -5620,21 +5653,21 @@ const ju = /* @__PURE__ */ N(Tu, [["render", Ru], ["__file", "/home/runner/work/
|
|
|
5620
5653
|
}
|
|
5621
5654
|
}
|
|
5622
5655
|
});
|
|
5623
|
-
function
|
|
5656
|
+
function Ou(e, t, n, r, o, i) {
|
|
5624
5657
|
var m;
|
|
5625
|
-
const u =
|
|
5626
|
-
return
|
|
5627
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (
|
|
5658
|
+
const u = V("inlined-script"), p = V("inlined-styles"), h = V("content-component");
|
|
5659
|
+
return b(), x(re, null, [
|
|
5660
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (b(), H(u, {
|
|
5628
5661
|
key: 0,
|
|
5629
5662
|
scriptStr: e.getScriptString()
|
|
5630
5663
|
}, null, 8, ["scriptStr"])) : P("v-if", !0),
|
|
5631
|
-
e.shouldRenderVariants ? (
|
|
5664
|
+
e.shouldRenderVariants ? (b(), x(re, { key: 1 }, [
|
|
5632
5665
|
Ie(p, {
|
|
5633
5666
|
id: `variants-styles-${(m = e.content) == null ? void 0 : m.id}`,
|
|
5634
5667
|
styles: e.hideVariantsStyleString
|
|
5635
5668
|
}, null, 8, ["id", "styles"]),
|
|
5636
5669
|
Ie(u, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
5637
|
-
(
|
|
5670
|
+
(b(!0), x(re, null, xe(e.getVariants(e.content), (v, A) => (b(), H(h, {
|
|
5638
5671
|
key: v.testVariationId,
|
|
5639
5672
|
content: v,
|
|
5640
5673
|
showContent: !1,
|
|
@@ -5648,8 +5681,12 @@ function $u(e, t, n, r, o, i) {
|
|
|
5648
5681
|
locale: e.locale,
|
|
5649
5682
|
includeRefs: e.includeRefs,
|
|
5650
5683
|
enrich: e.enrich,
|
|
5651
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
5652
|
-
|
|
5684
|
+
isSsrAbTest: e.shouldRenderVariants,
|
|
5685
|
+
blocksWrapper: e.blocksWrapper,
|
|
5686
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5687
|
+
contentWrapper: e.contentWrapper,
|
|
5688
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5689
|
+
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"]))), 128))
|
|
5653
5690
|
], 64)) : P("v-if", !0),
|
|
5654
5691
|
Ie(h, oe({
|
|
5655
5692
|
content: e.defaultContent,
|
|
@@ -5664,18 +5701,22 @@ function $u(e, t, n, r, o, i) {
|
|
|
5664
5701
|
locale: e.locale,
|
|
5665
5702
|
includeRefs: e.includeRefs,
|
|
5666
5703
|
enrich: e.enrich,
|
|
5667
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
5704
|
+
isSsrAbTest: e.shouldRenderVariants,
|
|
5705
|
+
blocksWrapper: e.blocksWrapper,
|
|
5706
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5707
|
+
contentWrapper: e.contentWrapper,
|
|
5708
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5668
5709
|
}, {
|
|
5669
5710
|
key: e.shouldRenderVariants.toString()
|
|
5670
|
-
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
5711
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
|
|
5671
5712
|
], 64);
|
|
5672
5713
|
}
|
|
5673
|
-
const
|
|
5714
|
+
const to = /* @__PURE__ */ _(ju, [["render", Ou], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), $u = async ({
|
|
5674
5715
|
builderContextValue: e,
|
|
5675
5716
|
symbol: t
|
|
5676
5717
|
}) => {
|
|
5677
5718
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
5678
|
-
return
|
|
5719
|
+
return It({
|
|
5679
5720
|
model: t.model,
|
|
5680
5721
|
apiKey: e.apiKey,
|
|
5681
5722
|
apiVersion: e.apiVersion,
|
|
@@ -5687,9 +5728,9 @@ const eo = /* @__PURE__ */ N(Ou, [["render", $u], ["__file", "/home/runner/work/
|
|
|
5687
5728
|
}).catch((n) => {
|
|
5688
5729
|
ee.error("Could not fetch symbol content: ", n);
|
|
5689
5730
|
});
|
|
5690
|
-
},
|
|
5731
|
+
}, Pu = N({
|
|
5691
5732
|
name: "builder-symbol",
|
|
5692
|
-
components: { ContentVariants:
|
|
5733
|
+
components: { ContentVariants: to },
|
|
5693
5734
|
props: [
|
|
5694
5735
|
"js",
|
|
5695
5736
|
"attributes",
|
|
@@ -5700,7 +5741,7 @@ const eo = /* @__PURE__ */ N(Ou, [["render", $u], ["__file", "/home/runner/work/
|
|
|
5700
5741
|
],
|
|
5701
5742
|
data() {
|
|
5702
5743
|
var e;
|
|
5703
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
5744
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: wt };
|
|
5704
5745
|
},
|
|
5705
5746
|
mounted() {
|
|
5706
5747
|
this.setContent();
|
|
@@ -5731,7 +5772,7 @@ const eo = /* @__PURE__ */ N(Ou, [["render", $u], ["__file", "/home/runner/work/
|
|
|
5731
5772
|
},
|
|
5732
5773
|
methods: {
|
|
5733
5774
|
setContent() {
|
|
5734
|
-
this.contentToUse ||
|
|
5775
|
+
this.contentToUse || $u({
|
|
5735
5776
|
symbol: this.symbol,
|
|
5736
5777
|
builderContextValue: this.builderContext
|
|
5737
5778
|
}).then((e) => {
|
|
@@ -5751,8 +5792,8 @@ const eo = /* @__PURE__ */ N(Ou, [["render", $u], ["__file", "/home/runner/work/
|
|
|
5751
5792
|
});
|
|
5752
5793
|
function Nu(e, t, n, r, o, i) {
|
|
5753
5794
|
var p, h, m, v;
|
|
5754
|
-
const u =
|
|
5755
|
-
return
|
|
5795
|
+
const u = V("content-variants");
|
|
5796
|
+
return b(), x("div", oe({
|
|
5756
5797
|
class: e._classStringToObject(e.className)
|
|
5757
5798
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ot(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5758
5799
|
Ie(u, {
|
|
@@ -5771,8 +5812,8 @@ function Nu(e, t, n, r, o, i) {
|
|
|
5771
5812
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
5772
5813
|
], 16);
|
|
5773
5814
|
}
|
|
5774
|
-
const
|
|
5775
|
-
function
|
|
5815
|
+
const _u = /* @__PURE__ */ _(Pu, [["render", Nu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), Ku = En, Gu = to, Cr = {};
|
|
5816
|
+
function zu(e) {
|
|
5776
5817
|
if (J()) {
|
|
5777
5818
|
Object.assign(Cr, e);
|
|
5778
5819
|
const t = {
|
|
@@ -5782,7 +5823,7 @@ function Xu(e) {
|
|
|
5782
5823
|
parent.postMessage(t, "*");
|
|
5783
5824
|
}
|
|
5784
5825
|
}
|
|
5785
|
-
const
|
|
5826
|
+
const Xu = async (e) => {
|
|
5786
5827
|
var r, o, i;
|
|
5787
5828
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5788
5829
|
...e,
|
|
@@ -5794,47 +5835,47 @@ const Ju = async (e) => {
|
|
|
5794
5835
|
urlPath: t
|
|
5795
5836
|
} : {}
|
|
5796
5837
|
},
|
|
5797
|
-
options:
|
|
5838
|
+
options: Xr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5798
5839
|
};
|
|
5799
5840
|
return {
|
|
5800
5841
|
apiKey: n.apiKey,
|
|
5801
5842
|
model: n.model,
|
|
5802
|
-
content: await
|
|
5843
|
+
content: await It(n)
|
|
5803
5844
|
};
|
|
5804
5845
|
};
|
|
5805
5846
|
export {
|
|
5806
|
-
|
|
5807
|
-
|
|
5847
|
+
jr as B,
|
|
5848
|
+
to as C,
|
|
5808
5849
|
Bi as F,
|
|
5809
5850
|
$i as I,
|
|
5810
|
-
|
|
5811
|
-
|
|
5851
|
+
Ku as R,
|
|
5852
|
+
_i as S,
|
|
5812
5853
|
ae as T,
|
|
5813
5854
|
Rs as V,
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5855
|
+
_,
|
|
5856
|
+
Pr as a,
|
|
5857
|
+
sn as b,
|
|
5858
|
+
Do as c,
|
|
5818
5859
|
En as d,
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5860
|
+
St as e,
|
|
5861
|
+
Gu as f,
|
|
5862
|
+
Eo as g,
|
|
5822
5863
|
Si as h,
|
|
5823
|
-
|
|
5864
|
+
_u as i,
|
|
5824
5865
|
Es as j,
|
|
5825
5866
|
ge as k,
|
|
5826
5867
|
Qs as l,
|
|
5827
5868
|
js as m,
|
|
5828
5869
|
Zs as n,
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5870
|
+
Yr as o,
|
|
5871
|
+
It as p,
|
|
5872
|
+
Lu as q,
|
|
5832
5873
|
mu as r,
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5874
|
+
zu as s,
|
|
5875
|
+
Vu as t,
|
|
5876
|
+
Xr as u,
|
|
5877
|
+
Hu as v,
|
|
5878
|
+
xu as w,
|
|
5879
|
+
Xu as x,
|
|
5880
|
+
Wu as y
|
|
5840
5881
|
};
|