nuxt-intlayer 7.0.0-canary.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/rolldown_runtime.cjs +0 -15
- package/dist/cjs/runtime/intlayer-plugin.cjs +4 -3
- package/dist/cjs/runtime/intlayer-plugin.cjs.map +1 -1
- package/dist/esm/runtime/intlayer-plugin.mjs +3 -3
- package/dist/esm/runtime/intlayer-plugin.mjs.map +1 -1
- package/package.json +16 -14
- package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs +0 -12494
- package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +0 -2353
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +0 -4751
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +0 -660
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +0 -442
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs +0 -22
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs +0 -1457
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs +0 -870
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs +0 -4204
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs +0 -1373
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs +0 -1270
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs +0 -44
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +0 -491
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs +0 -474
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs +0 -82
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs +0 -18
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs +0 -18
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs +0 -255
- package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs +0 -103
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs +0 -76
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs +0 -44
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs +0 -71
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs +0 -80
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs +0 -92
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs +0 -791
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs +0 -298
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs +0 -296
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs +0 -355
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs +0 -20
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs +0 -10
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs +0 -18
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs +0 -11
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs +0 -28
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs +0 -65
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs +0 -55
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs +0 -15
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs.map +0 -1
- package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs +0 -12491
- package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs +0 -2350
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs +0 -4748
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs +0 -657
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs +0 -439
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs +0 -19
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs +0 -1454
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs +0 -1312
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs +0 -867
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs +0 -4201
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs +0 -995
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs +0 -1370
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs +0 -1267
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs +0 -41
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs +0 -488
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -77
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs +0 -471
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs +0 -79
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs +0 -15
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs +0 -15
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs +0 -252
- package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs +0 -100
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs +0 -73
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs +0 -41
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs +0 -68
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs +0 -77
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs +0 -89
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs +0 -788
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs +0 -295
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs +0 -293
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs +0 -352
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs +0 -17
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs +0 -7
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs +0 -14
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs +0 -10
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs +0 -28
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs +0 -8
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs +0 -16
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs +0 -10
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs +0 -28
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs +0 -62
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs +0 -52
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs +0 -12
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs +0 -10
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs.map +0 -1
|
@@ -1,1370 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_shared } from "../../../../../@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs";
|
|
3
|
-
import { require_runtime_core } from "../../../../../@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/@vue+runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js
|
|
6
|
-
var require_runtime_dom_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.bun/@vue+runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js": ((exports) => {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
var runtimeCore = require_runtime_core();
|
|
9
|
-
var shared = require_shared();
|
|
10
|
-
let policy = void 0;
|
|
11
|
-
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
12
|
-
if (tt) try {
|
|
13
|
-
policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val });
|
|
14
|
-
} catch (e) {
|
|
15
|
-
runtimeCore.warn(`Error creating trusted types policy: ${e}`);
|
|
16
|
-
}
|
|
17
|
-
const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val;
|
|
18
|
-
const svgNS = "http://www.w3.org/2000/svg";
|
|
19
|
-
const mathmlNS = "http://www.w3.org/1998/Math/MathML";
|
|
20
|
-
const doc = typeof document !== "undefined" ? document : null;
|
|
21
|
-
const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
|
|
22
|
-
const nodeOps = {
|
|
23
|
-
insert: (child, parent, anchor) => {
|
|
24
|
-
parent.insertBefore(child, anchor || null);
|
|
25
|
-
},
|
|
26
|
-
remove: (child) => {
|
|
27
|
-
const parent = child.parentNode;
|
|
28
|
-
if (parent) parent.removeChild(child);
|
|
29
|
-
},
|
|
30
|
-
createElement: (tag, namespace, is, props) => {
|
|
31
|
-
const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
|
|
32
|
-
if (tag === "select" && props && props.multiple != null) el.setAttribute("multiple", props.multiple);
|
|
33
|
-
return el;
|
|
34
|
-
},
|
|
35
|
-
createText: (text) => doc.createTextNode(text),
|
|
36
|
-
createComment: (text) => doc.createComment(text),
|
|
37
|
-
setText: (node, text) => {
|
|
38
|
-
node.nodeValue = text;
|
|
39
|
-
},
|
|
40
|
-
setElementText: (el, text) => {
|
|
41
|
-
el.textContent = text;
|
|
42
|
-
},
|
|
43
|
-
parentNode: (node) => node.parentNode,
|
|
44
|
-
nextSibling: (node) => node.nextSibling,
|
|
45
|
-
querySelector: (selector) => doc.querySelector(selector),
|
|
46
|
-
setScopeId(el, id) {
|
|
47
|
-
el.setAttribute(id, "");
|
|
48
|
-
},
|
|
49
|
-
insertStaticContent(content, parent, anchor, namespace, start, end) {
|
|
50
|
-
const before = anchor ? anchor.previousSibling : parent.lastChild;
|
|
51
|
-
if (start && (start === end || start.nextSibling)) while (true) {
|
|
52
|
-
parent.insertBefore(start.cloneNode(true), anchor);
|
|
53
|
-
if (start === end || !(start = start.nextSibling)) break;
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
templateContainer.innerHTML = unsafeToTrustedHTML(namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content);
|
|
57
|
-
const template = templateContainer.content;
|
|
58
|
-
if (namespace === "svg" || namespace === "mathml") {
|
|
59
|
-
const wrapper = template.firstChild;
|
|
60
|
-
while (wrapper.firstChild) template.appendChild(wrapper.firstChild);
|
|
61
|
-
template.removeChild(wrapper);
|
|
62
|
-
}
|
|
63
|
-
parent.insertBefore(template, anchor);
|
|
64
|
-
}
|
|
65
|
-
return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const TRANSITION = "transition";
|
|
69
|
-
const ANIMATION = "animation";
|
|
70
|
-
const vtcKey = Symbol("_vtc");
|
|
71
|
-
const DOMTransitionPropsValidators = {
|
|
72
|
-
name: String,
|
|
73
|
-
type: String,
|
|
74
|
-
css: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: true
|
|
77
|
-
},
|
|
78
|
-
duration: [
|
|
79
|
-
String,
|
|
80
|
-
Number,
|
|
81
|
-
Object
|
|
82
|
-
],
|
|
83
|
-
enterFromClass: String,
|
|
84
|
-
enterActiveClass: String,
|
|
85
|
-
enterToClass: String,
|
|
86
|
-
appearFromClass: String,
|
|
87
|
-
appearActiveClass: String,
|
|
88
|
-
appearToClass: String,
|
|
89
|
-
leaveFromClass: String,
|
|
90
|
-
leaveActiveClass: String,
|
|
91
|
-
leaveToClass: String
|
|
92
|
-
};
|
|
93
|
-
const TransitionPropsValidators = /* @__PURE__ */ shared.extend({}, runtimeCore.BaseTransitionPropsValidators, DOMTransitionPropsValidators);
|
|
94
|
-
const decorate$1 = (t) => {
|
|
95
|
-
t.displayName = "Transition";
|
|
96
|
-
t.props = TransitionPropsValidators;
|
|
97
|
-
return t;
|
|
98
|
-
};
|
|
99
|
-
const Transition = /* @__PURE__ */ decorate$1((props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots));
|
|
100
|
-
const callHook = (hook, args = []) => {
|
|
101
|
-
if (shared.isArray(hook)) hook.forEach((h2) => h2(...args));
|
|
102
|
-
else if (hook) hook(...args);
|
|
103
|
-
};
|
|
104
|
-
const hasExplicitCallback = (hook) => {
|
|
105
|
-
return hook ? shared.isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
|
|
106
|
-
};
|
|
107
|
-
function resolveTransitionProps(rawProps) {
|
|
108
|
-
const baseProps = {};
|
|
109
|
-
for (const key in rawProps) if (!(key in DOMTransitionPropsValidators)) baseProps[key] = rawProps[key];
|
|
110
|
-
if (rawProps.css === false) return baseProps;
|
|
111
|
-
const { name = "v", type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
|
|
112
|
-
const durations = normalizeDuration(duration);
|
|
113
|
-
const enterDuration = durations && durations[0];
|
|
114
|
-
const leaveDuration = durations && durations[1];
|
|
115
|
-
const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
|
|
116
|
-
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
117
|
-
el._enterCancelled = isCancelled;
|
|
118
|
-
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
119
|
-
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
120
|
-
done && done();
|
|
121
|
-
};
|
|
122
|
-
const finishLeave = (el, done) => {
|
|
123
|
-
el._isLeaving = false;
|
|
124
|
-
removeTransitionClass(el, leaveFromClass);
|
|
125
|
-
removeTransitionClass(el, leaveToClass);
|
|
126
|
-
removeTransitionClass(el, leaveActiveClass);
|
|
127
|
-
done && done();
|
|
128
|
-
};
|
|
129
|
-
const makeEnterHook = (isAppear) => {
|
|
130
|
-
return (el, done) => {
|
|
131
|
-
const hook = isAppear ? onAppear : onEnter;
|
|
132
|
-
const resolve = () => finishEnter(el, isAppear, done);
|
|
133
|
-
callHook(hook, [el, resolve]);
|
|
134
|
-
nextFrame(() => {
|
|
135
|
-
removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
|
|
136
|
-
addTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
137
|
-
if (!hasExplicitCallback(hook)) whenTransitionEnds(el, type, enterDuration, resolve);
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
return shared.extend(baseProps, {
|
|
142
|
-
onBeforeEnter(el) {
|
|
143
|
-
callHook(onBeforeEnter, [el]);
|
|
144
|
-
addTransitionClass(el, enterFromClass);
|
|
145
|
-
addTransitionClass(el, enterActiveClass);
|
|
146
|
-
},
|
|
147
|
-
onBeforeAppear(el) {
|
|
148
|
-
callHook(onBeforeAppear, [el]);
|
|
149
|
-
addTransitionClass(el, appearFromClass);
|
|
150
|
-
addTransitionClass(el, appearActiveClass);
|
|
151
|
-
},
|
|
152
|
-
onEnter: makeEnterHook(false),
|
|
153
|
-
onAppear: makeEnterHook(true),
|
|
154
|
-
onLeave(el, done) {
|
|
155
|
-
el._isLeaving = true;
|
|
156
|
-
const resolve = () => finishLeave(el, done);
|
|
157
|
-
addTransitionClass(el, leaveFromClass);
|
|
158
|
-
if (!el._enterCancelled) {
|
|
159
|
-
forceReflow(el);
|
|
160
|
-
addTransitionClass(el, leaveActiveClass);
|
|
161
|
-
} else {
|
|
162
|
-
addTransitionClass(el, leaveActiveClass);
|
|
163
|
-
forceReflow(el);
|
|
164
|
-
}
|
|
165
|
-
nextFrame(() => {
|
|
166
|
-
if (!el._isLeaving) return;
|
|
167
|
-
removeTransitionClass(el, leaveFromClass);
|
|
168
|
-
addTransitionClass(el, leaveToClass);
|
|
169
|
-
if (!hasExplicitCallback(onLeave)) whenTransitionEnds(el, type, leaveDuration, resolve);
|
|
170
|
-
});
|
|
171
|
-
callHook(onLeave, [el, resolve]);
|
|
172
|
-
},
|
|
173
|
-
onEnterCancelled(el) {
|
|
174
|
-
finishEnter(el, false, void 0, true);
|
|
175
|
-
callHook(onEnterCancelled, [el]);
|
|
176
|
-
},
|
|
177
|
-
onAppearCancelled(el) {
|
|
178
|
-
finishEnter(el, true, void 0, true);
|
|
179
|
-
callHook(onAppearCancelled, [el]);
|
|
180
|
-
},
|
|
181
|
-
onLeaveCancelled(el) {
|
|
182
|
-
finishLeave(el);
|
|
183
|
-
callHook(onLeaveCancelled, [el]);
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
function normalizeDuration(duration) {
|
|
188
|
-
if (duration == null) return null;
|
|
189
|
-
else if (shared.isObject(duration)) return [NumberOf(duration.enter), NumberOf(duration.leave)];
|
|
190
|
-
else {
|
|
191
|
-
const n = NumberOf(duration);
|
|
192
|
-
return [n, n];
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function NumberOf(val) {
|
|
196
|
-
const res = shared.toNumber(val);
|
|
197
|
-
runtimeCore.assertNumber(res, "<transition> explicit duration");
|
|
198
|
-
return res;
|
|
199
|
-
}
|
|
200
|
-
function addTransitionClass(el, cls) {
|
|
201
|
-
cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
|
|
202
|
-
(el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
|
|
203
|
-
}
|
|
204
|
-
function removeTransitionClass(el, cls) {
|
|
205
|
-
cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
|
|
206
|
-
const _vtc = el[vtcKey];
|
|
207
|
-
if (_vtc) {
|
|
208
|
-
_vtc.delete(cls);
|
|
209
|
-
if (!_vtc.size) el[vtcKey] = void 0;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
function nextFrame(cb) {
|
|
213
|
-
requestAnimationFrame(() => {
|
|
214
|
-
requestAnimationFrame(cb);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
let endId = 0;
|
|
218
|
-
function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
|
|
219
|
-
const id = el._endId = ++endId;
|
|
220
|
-
const resolveIfNotStale = () => {
|
|
221
|
-
if (id === el._endId) resolve();
|
|
222
|
-
};
|
|
223
|
-
if (explicitTimeout != null) return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
224
|
-
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
225
|
-
if (!type) return resolve();
|
|
226
|
-
const endEvent = type + "end";
|
|
227
|
-
let ended = 0;
|
|
228
|
-
const end = () => {
|
|
229
|
-
el.removeEventListener(endEvent, onEnd);
|
|
230
|
-
resolveIfNotStale();
|
|
231
|
-
};
|
|
232
|
-
const onEnd = (e) => {
|
|
233
|
-
if (e.target === el && ++ended >= propCount) end();
|
|
234
|
-
};
|
|
235
|
-
setTimeout(() => {
|
|
236
|
-
if (ended < propCount) end();
|
|
237
|
-
}, timeout + 1);
|
|
238
|
-
el.addEventListener(endEvent, onEnd);
|
|
239
|
-
}
|
|
240
|
-
function getTransitionInfo(el, expectedType) {
|
|
241
|
-
const styles = window.getComputedStyle(el);
|
|
242
|
-
const getStyleProperties = (key) => (styles[key] || "").split(", ");
|
|
243
|
-
const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
|
|
244
|
-
const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
|
|
245
|
-
const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
|
|
246
|
-
const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
|
|
247
|
-
const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
|
|
248
|
-
const animationTimeout = getTimeout(animationDelays, animationDurations);
|
|
249
|
-
let type = null;
|
|
250
|
-
let timeout = 0;
|
|
251
|
-
let propCount = 0;
|
|
252
|
-
if (expectedType === TRANSITION) {
|
|
253
|
-
if (transitionTimeout > 0) {
|
|
254
|
-
type = TRANSITION;
|
|
255
|
-
timeout = transitionTimeout;
|
|
256
|
-
propCount = transitionDurations.length;
|
|
257
|
-
}
|
|
258
|
-
} else if (expectedType === ANIMATION) {
|
|
259
|
-
if (animationTimeout > 0) {
|
|
260
|
-
type = ANIMATION;
|
|
261
|
-
timeout = animationTimeout;
|
|
262
|
-
propCount = animationDurations.length;
|
|
263
|
-
}
|
|
264
|
-
} else {
|
|
265
|
-
timeout = Math.max(transitionTimeout, animationTimeout);
|
|
266
|
-
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
|
|
267
|
-
propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
|
|
268
|
-
}
|
|
269
|
-
const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());
|
|
270
|
-
return {
|
|
271
|
-
type,
|
|
272
|
-
timeout,
|
|
273
|
-
propCount,
|
|
274
|
-
hasTransform
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
function getTimeout(delays, durations) {
|
|
278
|
-
while (delays.length < durations.length) delays = delays.concat(delays);
|
|
279
|
-
return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
|
|
280
|
-
}
|
|
281
|
-
function toMs(s) {
|
|
282
|
-
if (s === "auto") return 0;
|
|
283
|
-
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
284
|
-
}
|
|
285
|
-
function forceReflow(el) {
|
|
286
|
-
return (el ? el.ownerDocument : document).body.offsetHeight;
|
|
287
|
-
}
|
|
288
|
-
function patchClass(el, value, isSVG) {
|
|
289
|
-
const transitionClasses = el[vtcKey];
|
|
290
|
-
if (transitionClasses) value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
|
|
291
|
-
if (value == null) el.removeAttribute("class");
|
|
292
|
-
else if (isSVG) el.setAttribute("class", value);
|
|
293
|
-
else el.className = value;
|
|
294
|
-
}
|
|
295
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
296
|
-
const vShowHidden = Symbol("_vsh");
|
|
297
|
-
const vShow = {
|
|
298
|
-
name: "show",
|
|
299
|
-
beforeMount(el, { value }, { transition }) {
|
|
300
|
-
el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
|
|
301
|
-
if (transition && value) transition.beforeEnter(el);
|
|
302
|
-
else setDisplay(el, value);
|
|
303
|
-
},
|
|
304
|
-
mounted(el, { value }, { transition }) {
|
|
305
|
-
if (transition && value) transition.enter(el);
|
|
306
|
-
},
|
|
307
|
-
updated(el, { value, oldValue }, { transition }) {
|
|
308
|
-
if (!value === !oldValue) return;
|
|
309
|
-
if (transition) if (value) {
|
|
310
|
-
transition.beforeEnter(el);
|
|
311
|
-
setDisplay(el, true);
|
|
312
|
-
transition.enter(el);
|
|
313
|
-
} else transition.leave(el, () => {
|
|
314
|
-
setDisplay(el, false);
|
|
315
|
-
});
|
|
316
|
-
else setDisplay(el, value);
|
|
317
|
-
},
|
|
318
|
-
beforeUnmount(el, { value }) {
|
|
319
|
-
setDisplay(el, value);
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
function setDisplay(el, value) {
|
|
323
|
-
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
324
|
-
el[vShowHidden] = !value;
|
|
325
|
-
}
|
|
326
|
-
function initVShowForSSR() {
|
|
327
|
-
vShow.getSSRProps = ({ value }) => {
|
|
328
|
-
if (!value) return { style: { display: "none" } };
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT");
|
|
332
|
-
function useCssVars(getter) {}
|
|
333
|
-
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
334
|
-
function patchStyle(el, prev, next) {
|
|
335
|
-
const style = el.style;
|
|
336
|
-
const isCssString = shared.isString(next);
|
|
337
|
-
let hasControlledDisplay = false;
|
|
338
|
-
if (next && !isCssString) {
|
|
339
|
-
if (prev) if (!shared.isString(prev)) {
|
|
340
|
-
for (const key in prev) if (next[key] == null) setStyle(style, key, "");
|
|
341
|
-
} else for (const prevStyle of prev.split(";")) {
|
|
342
|
-
const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
|
|
343
|
-
if (next[key] == null) setStyle(style, key, "");
|
|
344
|
-
}
|
|
345
|
-
for (const key in next) {
|
|
346
|
-
if (key === "display") hasControlledDisplay = true;
|
|
347
|
-
setStyle(style, key, next[key]);
|
|
348
|
-
}
|
|
349
|
-
} else if (isCssString) {
|
|
350
|
-
if (prev !== next) {
|
|
351
|
-
const cssVarText = style[CSS_VAR_TEXT];
|
|
352
|
-
if (cssVarText) next += ";" + cssVarText;
|
|
353
|
-
style.cssText = next;
|
|
354
|
-
hasControlledDisplay = displayRE.test(next);
|
|
355
|
-
}
|
|
356
|
-
} else if (prev) el.removeAttribute("style");
|
|
357
|
-
if (vShowOriginalDisplay in el) {
|
|
358
|
-
el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
|
|
359
|
-
if (el[vShowHidden]) style.display = "none";
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
const semicolonRE = /[^\\];\s*$/;
|
|
363
|
-
const importantRE = /\s*!important$/;
|
|
364
|
-
function setStyle(style, name, val) {
|
|
365
|
-
if (shared.isArray(val)) val.forEach((v) => setStyle(style, name, v));
|
|
366
|
-
else {
|
|
367
|
-
if (val == null) val = "";
|
|
368
|
-
if (semicolonRE.test(val)) runtimeCore.warn(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
|
|
369
|
-
if (name.startsWith("--")) style.setProperty(name, val);
|
|
370
|
-
else {
|
|
371
|
-
const prefixed = autoPrefix(style, name);
|
|
372
|
-
if (importantRE.test(val)) style.setProperty(shared.hyphenate(prefixed), val.replace(importantRE, ""), "important");
|
|
373
|
-
else style[prefixed] = val;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
const prefixes = [
|
|
378
|
-
"Webkit",
|
|
379
|
-
"Moz",
|
|
380
|
-
"ms"
|
|
381
|
-
];
|
|
382
|
-
const prefixCache = {};
|
|
383
|
-
function autoPrefix(style, rawName) {
|
|
384
|
-
const cached = prefixCache[rawName];
|
|
385
|
-
if (cached) return cached;
|
|
386
|
-
let name = runtimeCore.camelize(rawName);
|
|
387
|
-
if (name !== "filter" && name in style) return prefixCache[rawName] = name;
|
|
388
|
-
name = shared.capitalize(name);
|
|
389
|
-
for (let i = 0; i < prefixes.length; i++) {
|
|
390
|
-
const prefixed = prefixes[i] + name;
|
|
391
|
-
if (prefixed in style) return prefixCache[rawName] = prefixed;
|
|
392
|
-
}
|
|
393
|
-
return rawName;
|
|
394
|
-
}
|
|
395
|
-
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
396
|
-
function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
|
|
397
|
-
if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
|
|
398
|
-
else el.setAttributeNS(xlinkNS, key, value);
|
|
399
|
-
else if (value == null || isBoolean && !shared.includeBooleanAttr(value)) el.removeAttribute(key);
|
|
400
|
-
else el.setAttribute(key, isBoolean ? "" : shared.isSymbol(value) ? String(value) : value);
|
|
401
|
-
}
|
|
402
|
-
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
403
|
-
if (key === "innerHTML" || key === "textContent") {
|
|
404
|
-
if (value != null) el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
const tag = el.tagName;
|
|
408
|
-
if (key === "value" && tag !== "PROGRESS" && !tag.includes("-")) {
|
|
409
|
-
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
410
|
-
const newValue = value == null ? el.type === "checkbox" ? "on" : "" : String(value);
|
|
411
|
-
if (oldValue !== newValue || !("_value" in el)) el.value = newValue;
|
|
412
|
-
if (value == null) el.removeAttribute(key);
|
|
413
|
-
el._value = value;
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
let needRemove = false;
|
|
417
|
-
if (value === "" || value == null) {
|
|
418
|
-
const type = typeof el[key];
|
|
419
|
-
if (type === "boolean") value = shared.includeBooleanAttr(value);
|
|
420
|
-
else if (value == null && type === "string") {
|
|
421
|
-
value = "";
|
|
422
|
-
needRemove = true;
|
|
423
|
-
} else if (type === "number") {
|
|
424
|
-
value = 0;
|
|
425
|
-
needRemove = true;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
try {
|
|
429
|
-
el[key] = value;
|
|
430
|
-
} catch (e) {
|
|
431
|
-
if (!needRemove) runtimeCore.warn(`Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`, e);
|
|
432
|
-
}
|
|
433
|
-
needRemove && el.removeAttribute(attrName || key);
|
|
434
|
-
}
|
|
435
|
-
function addEventListener(el, event, handler, options) {
|
|
436
|
-
el.addEventListener(event, handler, options);
|
|
437
|
-
}
|
|
438
|
-
function removeEventListener(el, event, handler, options) {
|
|
439
|
-
el.removeEventListener(event, handler, options);
|
|
440
|
-
}
|
|
441
|
-
const veiKey = Symbol("_vei");
|
|
442
|
-
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
443
|
-
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
444
|
-
const existingInvoker = invokers[rawName];
|
|
445
|
-
if (nextValue && existingInvoker) existingInvoker.value = sanitizeEventValue(nextValue, rawName);
|
|
446
|
-
else {
|
|
447
|
-
const [name, options] = parseName(rawName);
|
|
448
|
-
if (nextValue) addEventListener(el, name, invokers[rawName] = createInvoker(sanitizeEventValue(nextValue, rawName), instance), options);
|
|
449
|
-
else if (existingInvoker) {
|
|
450
|
-
removeEventListener(el, name, existingInvoker, options);
|
|
451
|
-
invokers[rawName] = void 0;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
const optionsModifierRE = /(?:Once|Passive|Capture)$/;
|
|
456
|
-
function parseName(name) {
|
|
457
|
-
let options;
|
|
458
|
-
if (optionsModifierRE.test(name)) {
|
|
459
|
-
options = {};
|
|
460
|
-
let m;
|
|
461
|
-
while (m = name.match(optionsModifierRE)) {
|
|
462
|
-
name = name.slice(0, name.length - m[0].length);
|
|
463
|
-
options[m[0].toLowerCase()] = true;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
return [name[2] === ":" ? name.slice(3) : shared.hyphenate(name.slice(2)), options];
|
|
467
|
-
}
|
|
468
|
-
let cachedNow = 0;
|
|
469
|
-
const p = /* @__PURE__ */ Promise.resolve();
|
|
470
|
-
const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
|
|
471
|
-
function createInvoker(initialValue, instance) {
|
|
472
|
-
const invoker = (e) => {
|
|
473
|
-
if (!e._vts) e._vts = Date.now();
|
|
474
|
-
else if (e._vts <= invoker.attached) return;
|
|
475
|
-
runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]);
|
|
476
|
-
};
|
|
477
|
-
invoker.value = initialValue;
|
|
478
|
-
invoker.attached = getNow();
|
|
479
|
-
return invoker;
|
|
480
|
-
}
|
|
481
|
-
function sanitizeEventValue(value, propName) {
|
|
482
|
-
if (shared.isFunction(value) || shared.isArray(value)) return value;
|
|
483
|
-
runtimeCore.warn(`Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?
|
|
484
|
-
Expected function or array of functions, received type ${typeof value}.`);
|
|
485
|
-
return shared.NOOP;
|
|
486
|
-
}
|
|
487
|
-
function patchStopImmediatePropagation(e, value) {
|
|
488
|
-
if (shared.isArray(value)) {
|
|
489
|
-
const originalStop = e.stopImmediatePropagation;
|
|
490
|
-
e.stopImmediatePropagation = () => {
|
|
491
|
-
originalStop.call(e);
|
|
492
|
-
e._stopped = true;
|
|
493
|
-
};
|
|
494
|
-
return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
|
|
495
|
-
} else return value;
|
|
496
|
-
}
|
|
497
|
-
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
498
|
-
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
499
|
-
const isSVG = namespace === "svg";
|
|
500
|
-
if (key === "class") patchClass(el, nextValue, isSVG);
|
|
501
|
-
else if (key === "style") patchStyle(el, prevValue, nextValue);
|
|
502
|
-
else if (shared.isOn(key)) {
|
|
503
|
-
if (!shared.isModelListener(key)) patchEvent(el, key, prevValue, nextValue, parentComponent);
|
|
504
|
-
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
505
|
-
patchDOMProp(el, key, nextValue);
|
|
506
|
-
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
507
|
-
} else if (el._isVueCE && (/[A-Z]/.test(key) || !shared.isString(nextValue))) patchDOMProp(el, shared.camelize(key), nextValue, parentComponent, key);
|
|
508
|
-
else {
|
|
509
|
-
if (key === "true-value") el._trueValue = nextValue;
|
|
510
|
-
else if (key === "false-value") el._falseValue = nextValue;
|
|
511
|
-
patchAttr(el, key, nextValue, isSVG);
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
function shouldSetAsProp(el, key, value, isSVG) {
|
|
515
|
-
if (isSVG) {
|
|
516
|
-
if (key === "innerHTML" || key === "textContent") return true;
|
|
517
|
-
if (key in el && isNativeOn(key) && shared.isFunction(value)) return true;
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") return false;
|
|
521
|
-
if (key === "form") return false;
|
|
522
|
-
if (key === "list" && el.tagName === "INPUT") return false;
|
|
523
|
-
if (key === "type" && el.tagName === "TEXTAREA") return false;
|
|
524
|
-
if (key === "width" || key === "height") {
|
|
525
|
-
const tag = el.tagName;
|
|
526
|
-
if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") return false;
|
|
527
|
-
}
|
|
528
|
-
if (isNativeOn(key) && shared.isString(value)) return false;
|
|
529
|
-
return key in el;
|
|
530
|
-
}
|
|
531
|
-
const REMOVAL = {};
|
|
532
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
533
|
-
function defineCustomElement(options, extraOptions, _createApp) {
|
|
534
|
-
let Comp = runtimeCore.defineComponent(options, extraOptions);
|
|
535
|
-
if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
|
|
536
|
-
class VueCustomElement extends VueElement {
|
|
537
|
-
constructor(initialProps) {
|
|
538
|
-
super(Comp, initialProps, _createApp);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
VueCustomElement.def = Comp;
|
|
542
|
-
return VueCustomElement;
|
|
543
|
-
}
|
|
544
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ ((options, extraOptions) => {
|
|
545
|
-
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
546
|
-
});
|
|
547
|
-
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {};
|
|
548
|
-
var VueElement = class VueElement extends BaseClass {
|
|
549
|
-
constructor(_def, _props = {}, _createApp = createApp) {
|
|
550
|
-
super();
|
|
551
|
-
this._def = _def;
|
|
552
|
-
this._props = _props;
|
|
553
|
-
this._createApp = _createApp;
|
|
554
|
-
this._isVueCE = true;
|
|
555
|
-
/**
|
|
556
|
-
* @internal
|
|
557
|
-
*/
|
|
558
|
-
this._instance = null;
|
|
559
|
-
/**
|
|
560
|
-
* @internal
|
|
561
|
-
*/
|
|
562
|
-
this._app = null;
|
|
563
|
-
/**
|
|
564
|
-
* @internal
|
|
565
|
-
*/
|
|
566
|
-
this._nonce = this._def.nonce;
|
|
567
|
-
this._connected = false;
|
|
568
|
-
this._resolved = false;
|
|
569
|
-
this._numberProps = null;
|
|
570
|
-
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
571
|
-
this._ob = null;
|
|
572
|
-
if (this.shadowRoot && _createApp !== createApp) this._root = this.shadowRoot;
|
|
573
|
-
else {
|
|
574
|
-
if (this.shadowRoot) runtimeCore.warn(`Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use \`defineSSRCustomElement\`.`);
|
|
575
|
-
if (_def.shadowRoot !== false) {
|
|
576
|
-
this.attachShadow(shared.extend({}, _def.shadowRootOptions, { mode: "open" }));
|
|
577
|
-
this._root = this.shadowRoot;
|
|
578
|
-
} else this._root = this;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
connectedCallback() {
|
|
582
|
-
if (!this.isConnected) return;
|
|
583
|
-
if (!this.shadowRoot && !this._resolved) this._parseSlots();
|
|
584
|
-
this._connected = true;
|
|
585
|
-
let parent = this;
|
|
586
|
-
while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElement) {
|
|
587
|
-
this._parent = parent;
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
if (!this._instance) if (this._resolved) this._mount(this._def);
|
|
591
|
-
else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
|
|
592
|
-
this._pendingResolve = void 0;
|
|
593
|
-
this._resolveDef();
|
|
594
|
-
});
|
|
595
|
-
else this._resolveDef();
|
|
596
|
-
}
|
|
597
|
-
_setParent(parent = this._parent) {
|
|
598
|
-
if (parent) {
|
|
599
|
-
this._instance.parent = parent._instance;
|
|
600
|
-
this._inheritParentContext(parent);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
_inheritParentContext(parent = this._parent) {
|
|
604
|
-
if (parent && this._app) Object.setPrototypeOf(this._app._context.provides, parent._instance.provides);
|
|
605
|
-
}
|
|
606
|
-
disconnectedCallback() {
|
|
607
|
-
this._connected = false;
|
|
608
|
-
runtimeCore.nextTick(() => {
|
|
609
|
-
if (!this._connected) {
|
|
610
|
-
if (this._ob) {
|
|
611
|
-
this._ob.disconnect();
|
|
612
|
-
this._ob = null;
|
|
613
|
-
}
|
|
614
|
-
this._app && this._app.unmount();
|
|
615
|
-
if (this._instance) this._instance.ce = void 0;
|
|
616
|
-
this._app = this._instance = null;
|
|
617
|
-
if (this._teleportTargets) {
|
|
618
|
-
this._teleportTargets.clear();
|
|
619
|
-
this._teleportTargets = void 0;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
_processMutations(mutations) {
|
|
625
|
-
for (const m of mutations) this._setAttr(m.attributeName);
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* resolve inner component definition (handle possible async component)
|
|
629
|
-
*/
|
|
630
|
-
_resolveDef() {
|
|
631
|
-
if (this._pendingResolve) return;
|
|
632
|
-
for (let i = 0; i < this.attributes.length; i++) this._setAttr(this.attributes[i].name);
|
|
633
|
-
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
634
|
-
this._ob.observe(this, { attributes: true });
|
|
635
|
-
const resolve = (def, isAsync = false) => {
|
|
636
|
-
this._resolved = true;
|
|
637
|
-
this._pendingResolve = void 0;
|
|
638
|
-
const { props, styles } = def;
|
|
639
|
-
let numberProps;
|
|
640
|
-
if (props && !shared.isArray(props)) for (const key in props) {
|
|
641
|
-
const opt = props[key];
|
|
642
|
-
if (opt === Number || opt && opt.type === Number) {
|
|
643
|
-
if (key in this._props) this._props[key] = shared.toNumber(this._props[key]);
|
|
644
|
-
(numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[shared.camelize(key)] = true;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
this._numberProps = numberProps;
|
|
648
|
-
this._resolveProps(def);
|
|
649
|
-
if (this.shadowRoot) this._applyStyles(styles);
|
|
650
|
-
else if (styles) runtimeCore.warn("Custom element style injection is not supported when using shadowRoot: false");
|
|
651
|
-
this._mount(def);
|
|
652
|
-
};
|
|
653
|
-
const asyncDef = this._def.__asyncLoader;
|
|
654
|
-
if (asyncDef) this._pendingResolve = asyncDef().then((def) => {
|
|
655
|
-
def.configureApp = this._def.configureApp;
|
|
656
|
-
resolve(this._def = def, true);
|
|
657
|
-
});
|
|
658
|
-
else resolve(this._def);
|
|
659
|
-
}
|
|
660
|
-
_mount(def) {
|
|
661
|
-
if (!def.name) def.name = "VueElement";
|
|
662
|
-
this._app = this._createApp(def);
|
|
663
|
-
this._inheritParentContext();
|
|
664
|
-
if (def.configureApp) def.configureApp(this._app);
|
|
665
|
-
this._app._ceVNode = this._createVNode();
|
|
666
|
-
this._app.mount(this._root);
|
|
667
|
-
const exposed = this._instance && this._instance.exposed;
|
|
668
|
-
if (!exposed) return;
|
|
669
|
-
for (const key in exposed) if (!shared.hasOwn(this, key)) Object.defineProperty(this, key, { get: () => runtimeCore.unref(exposed[key]) });
|
|
670
|
-
else runtimeCore.warn(`Exposed property "${key}" already exists on custom element.`);
|
|
671
|
-
}
|
|
672
|
-
_resolveProps(def) {
|
|
673
|
-
const { props } = def;
|
|
674
|
-
const declaredPropKeys = shared.isArray(props) ? props : Object.keys(props || {});
|
|
675
|
-
for (const key of Object.keys(this)) if (key[0] !== "_" && declaredPropKeys.includes(key)) this._setProp(key, this[key]);
|
|
676
|
-
for (const key of declaredPropKeys.map(shared.camelize)) Object.defineProperty(this, key, {
|
|
677
|
-
get() {
|
|
678
|
-
return this._getProp(key);
|
|
679
|
-
},
|
|
680
|
-
set(val) {
|
|
681
|
-
this._setProp(key, val, true, true);
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
_setAttr(key) {
|
|
686
|
-
if (key.startsWith("data-v-")) return;
|
|
687
|
-
const has = this.hasAttribute(key);
|
|
688
|
-
let value = has ? this.getAttribute(key) : REMOVAL;
|
|
689
|
-
const camelKey = shared.camelize(key);
|
|
690
|
-
if (has && this._numberProps && this._numberProps[camelKey]) value = shared.toNumber(value);
|
|
691
|
-
this._setProp(camelKey, value, false, true);
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* @internal
|
|
695
|
-
*/
|
|
696
|
-
_getProp(key) {
|
|
697
|
-
return this._props[key];
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* @internal
|
|
701
|
-
*/
|
|
702
|
-
_setProp(key, val, shouldReflect = true, shouldUpdate = false) {
|
|
703
|
-
if (val !== this._props[key]) {
|
|
704
|
-
if (val === REMOVAL) delete this._props[key];
|
|
705
|
-
else {
|
|
706
|
-
this._props[key] = val;
|
|
707
|
-
if (key === "key" && this._app) this._app._ceVNode.key = val;
|
|
708
|
-
}
|
|
709
|
-
if (shouldUpdate && this._instance) this._update();
|
|
710
|
-
if (shouldReflect) {
|
|
711
|
-
const ob = this._ob;
|
|
712
|
-
if (ob) {
|
|
713
|
-
this._processMutations(ob.takeRecords());
|
|
714
|
-
ob.disconnect();
|
|
715
|
-
}
|
|
716
|
-
if (val === true) this.setAttribute(shared.hyphenate(key), "");
|
|
717
|
-
else if (typeof val === "string" || typeof val === "number") this.setAttribute(shared.hyphenate(key), val + "");
|
|
718
|
-
else if (!val) this.removeAttribute(shared.hyphenate(key));
|
|
719
|
-
ob && ob.observe(this, { attributes: true });
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
_update() {
|
|
724
|
-
const vnode = this._createVNode();
|
|
725
|
-
if (this._app) vnode.appContext = this._app._context;
|
|
726
|
-
render(vnode, this._root);
|
|
727
|
-
}
|
|
728
|
-
_createVNode() {
|
|
729
|
-
const baseProps = {};
|
|
730
|
-
if (!this.shadowRoot) baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
|
|
731
|
-
const vnode = runtimeCore.createVNode(this._def, shared.extend(baseProps, this._props));
|
|
732
|
-
if (!this._instance) vnode.ce = (instance) => {
|
|
733
|
-
this._instance = instance;
|
|
734
|
-
instance.ce = this;
|
|
735
|
-
instance.isCE = true;
|
|
736
|
-
instance.ceReload = (newStyles) => {
|
|
737
|
-
if (this._styles) {
|
|
738
|
-
this._styles.forEach((s) => this._root.removeChild(s));
|
|
739
|
-
this._styles.length = 0;
|
|
740
|
-
}
|
|
741
|
-
this._applyStyles(newStyles);
|
|
742
|
-
this._instance = null;
|
|
743
|
-
this._update();
|
|
744
|
-
};
|
|
745
|
-
const dispatch = (event, args) => {
|
|
746
|
-
this.dispatchEvent(new CustomEvent(event, shared.isPlainObject(args[0]) ? shared.extend({ detail: args }, args[0]) : { detail: args }));
|
|
747
|
-
};
|
|
748
|
-
instance.emit = (event, ...args) => {
|
|
749
|
-
dispatch(event, args);
|
|
750
|
-
if (shared.hyphenate(event) !== event) dispatch(shared.hyphenate(event), args);
|
|
751
|
-
};
|
|
752
|
-
this._setParent();
|
|
753
|
-
};
|
|
754
|
-
return vnode;
|
|
755
|
-
}
|
|
756
|
-
_applyStyles(styles, owner) {
|
|
757
|
-
if (!styles) return;
|
|
758
|
-
if (owner) {
|
|
759
|
-
if (owner === this._def || this._styleChildren.has(owner)) return;
|
|
760
|
-
this._styleChildren.add(owner);
|
|
761
|
-
}
|
|
762
|
-
const nonce = this._nonce;
|
|
763
|
-
for (let i = styles.length - 1; i >= 0; i--) {
|
|
764
|
-
const s = document.createElement("style");
|
|
765
|
-
if (nonce) s.setAttribute("nonce", nonce);
|
|
766
|
-
s.textContent = styles[i];
|
|
767
|
-
this.shadowRoot.prepend(s);
|
|
768
|
-
if (owner) {
|
|
769
|
-
if (owner.__hmrId) {
|
|
770
|
-
if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
|
|
771
|
-
let entry = this._childStyles.get(owner.__hmrId);
|
|
772
|
-
if (!entry) this._childStyles.set(owner.__hmrId, entry = []);
|
|
773
|
-
entry.push(s);
|
|
774
|
-
}
|
|
775
|
-
} else (this._styles || (this._styles = [])).push(s);
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Only called when shadowRoot is false
|
|
780
|
-
*/
|
|
781
|
-
_parseSlots() {
|
|
782
|
-
const slots = this._slots = {};
|
|
783
|
-
let n;
|
|
784
|
-
while (n = this.firstChild) {
|
|
785
|
-
const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
|
|
786
|
-
(slots[slotName] || (slots[slotName] = [])).push(n);
|
|
787
|
-
this.removeChild(n);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Only called when shadowRoot is false
|
|
792
|
-
*/
|
|
793
|
-
_renderSlots() {
|
|
794
|
-
const outlets = this._getSlots();
|
|
795
|
-
const scopeId = this._instance.type.__scopeId;
|
|
796
|
-
for (let i = 0; i < outlets.length; i++) {
|
|
797
|
-
const o = outlets[i];
|
|
798
|
-
const slotName = o.getAttribute("name") || "default";
|
|
799
|
-
const content = this._slots[slotName];
|
|
800
|
-
const parent = o.parentNode;
|
|
801
|
-
if (content) for (const n of content) {
|
|
802
|
-
if (scopeId && n.nodeType === 1) {
|
|
803
|
-
const id = scopeId + "-s";
|
|
804
|
-
const walker = document.createTreeWalker(n, 1);
|
|
805
|
-
n.setAttribute(id, "");
|
|
806
|
-
let child;
|
|
807
|
-
while (child = walker.nextNode()) child.setAttribute(id, "");
|
|
808
|
-
}
|
|
809
|
-
parent.insertBefore(n, o);
|
|
810
|
-
}
|
|
811
|
-
else while (o.firstChild) parent.insertBefore(o.firstChild, o);
|
|
812
|
-
parent.removeChild(o);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* @internal
|
|
817
|
-
*/
|
|
818
|
-
_getSlots() {
|
|
819
|
-
const roots = [this];
|
|
820
|
-
if (this._teleportTargets) roots.push(...this._teleportTargets);
|
|
821
|
-
return roots.reduce((res, i) => {
|
|
822
|
-
res.push(...Array.from(i.querySelectorAll("slot")));
|
|
823
|
-
return res;
|
|
824
|
-
}, []);
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* @internal
|
|
828
|
-
*/
|
|
829
|
-
_injectChildStyle(comp) {
|
|
830
|
-
this._applyStyles(comp.styles, comp);
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* @internal
|
|
834
|
-
*/
|
|
835
|
-
_removeChildStyle(comp) {
|
|
836
|
-
this._styleChildren.delete(comp);
|
|
837
|
-
if (this._childStyles && comp.__hmrId) {
|
|
838
|
-
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
839
|
-
if (oldStyles) {
|
|
840
|
-
oldStyles.forEach((s) => this._root.removeChild(s));
|
|
841
|
-
oldStyles.length = 0;
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
function useHost(caller) {
|
|
847
|
-
const instance = runtimeCore.getCurrentInstance();
|
|
848
|
-
const el = instance && instance.ce;
|
|
849
|
-
if (el) return el;
|
|
850
|
-
else if (!instance) runtimeCore.warn(`${caller || "useHost"} called without an active component instance.`);
|
|
851
|
-
else runtimeCore.warn(`${caller || "useHost"} can only be used in components defined via defineCustomElement.`);
|
|
852
|
-
return null;
|
|
853
|
-
}
|
|
854
|
-
function useShadowRoot() {
|
|
855
|
-
const el = useHost("useShadowRoot");
|
|
856
|
-
return el && el.shadowRoot;
|
|
857
|
-
}
|
|
858
|
-
function useCssModule(name = "$style") {
|
|
859
|
-
{
|
|
860
|
-
const instance = runtimeCore.getCurrentInstance();
|
|
861
|
-
if (!instance) {
|
|
862
|
-
runtimeCore.warn(`useCssModule must be called inside setup()`);
|
|
863
|
-
return shared.EMPTY_OBJ;
|
|
864
|
-
}
|
|
865
|
-
const modules = instance.type.__cssModules;
|
|
866
|
-
if (!modules) {
|
|
867
|
-
runtimeCore.warn(`Current instance does not have CSS modules injected.`);
|
|
868
|
-
return shared.EMPTY_OBJ;
|
|
869
|
-
}
|
|
870
|
-
const mod = modules[name];
|
|
871
|
-
if (!mod) {
|
|
872
|
-
runtimeCore.warn(`Current instance does not have CSS module named "${name}".`);
|
|
873
|
-
return shared.EMPTY_OBJ;
|
|
874
|
-
}
|
|
875
|
-
return mod;
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
879
|
-
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
880
|
-
const moveCbKey = Symbol("_moveCb");
|
|
881
|
-
const enterCbKey = Symbol("_enterCb");
|
|
882
|
-
const decorate = (t) => {
|
|
883
|
-
delete t.props.mode;
|
|
884
|
-
return t;
|
|
885
|
-
};
|
|
886
|
-
const TransitionGroup = /* @__PURE__ */ decorate({
|
|
887
|
-
name: "TransitionGroup",
|
|
888
|
-
props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
|
|
889
|
-
tag: String,
|
|
890
|
-
moveClass: String
|
|
891
|
-
}),
|
|
892
|
-
setup(props, { slots }) {
|
|
893
|
-
const instance = runtimeCore.getCurrentInstance();
|
|
894
|
-
const state = runtimeCore.useTransitionState();
|
|
895
|
-
let prevChildren;
|
|
896
|
-
let children;
|
|
897
|
-
runtimeCore.onUpdated(() => {
|
|
898
|
-
if (!prevChildren.length) return;
|
|
899
|
-
const moveClass = props.moveClass || `${props.name || "v"}-move`;
|
|
900
|
-
if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {
|
|
901
|
-
prevChildren = [];
|
|
902
|
-
return;
|
|
903
|
-
}
|
|
904
|
-
prevChildren.forEach(callPendingCbs);
|
|
905
|
-
prevChildren.forEach(recordPosition);
|
|
906
|
-
const movedChildren = prevChildren.filter(applyTranslation);
|
|
907
|
-
forceReflow(instance.vnode.el);
|
|
908
|
-
movedChildren.forEach((c) => {
|
|
909
|
-
const el = c.el;
|
|
910
|
-
const style = el.style;
|
|
911
|
-
addTransitionClass(el, moveClass);
|
|
912
|
-
style.transform = style.webkitTransform = style.transitionDuration = "";
|
|
913
|
-
const cb = el[moveCbKey] = (e) => {
|
|
914
|
-
if (e && e.target !== el) return;
|
|
915
|
-
if (!e || e.propertyName.endsWith("transform")) {
|
|
916
|
-
el.removeEventListener("transitionend", cb);
|
|
917
|
-
el[moveCbKey] = null;
|
|
918
|
-
removeTransitionClass(el, moveClass);
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
el.addEventListener("transitionend", cb);
|
|
922
|
-
});
|
|
923
|
-
prevChildren = [];
|
|
924
|
-
});
|
|
925
|
-
return () => {
|
|
926
|
-
const rawProps = runtimeCore.toRaw(props);
|
|
927
|
-
const cssTransitionProps = resolveTransitionProps(rawProps);
|
|
928
|
-
let tag = rawProps.tag || runtimeCore.Fragment;
|
|
929
|
-
prevChildren = [];
|
|
930
|
-
if (children) for (let i = 0; i < children.length; i++) {
|
|
931
|
-
const child = children[i];
|
|
932
|
-
if (child.el && child.el instanceof Element) {
|
|
933
|
-
prevChildren.push(child);
|
|
934
|
-
runtimeCore.setTransitionHooks(child, runtimeCore.resolveTransitionHooks(child, cssTransitionProps, state, instance));
|
|
935
|
-
positionMap.set(child, child.el.getBoundingClientRect());
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
children = slots.default ? runtimeCore.getTransitionRawChildren(slots.default()) : [];
|
|
939
|
-
for (let i = 0; i < children.length; i++) {
|
|
940
|
-
const child = children[i];
|
|
941
|
-
if (child.key != null) runtimeCore.setTransitionHooks(child, runtimeCore.resolveTransitionHooks(child, cssTransitionProps, state, instance));
|
|
942
|
-
else if (child.type !== runtimeCore.Text) runtimeCore.warn(`<TransitionGroup> children must be keyed.`);
|
|
943
|
-
}
|
|
944
|
-
return runtimeCore.createVNode(tag, null, children);
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
});
|
|
948
|
-
function callPendingCbs(c) {
|
|
949
|
-
const el = c.el;
|
|
950
|
-
if (el[moveCbKey]) el[moveCbKey]();
|
|
951
|
-
if (el[enterCbKey]) el[enterCbKey]();
|
|
952
|
-
}
|
|
953
|
-
function recordPosition(c) {
|
|
954
|
-
newPositionMap.set(c, c.el.getBoundingClientRect());
|
|
955
|
-
}
|
|
956
|
-
function applyTranslation(c) {
|
|
957
|
-
const oldPos = positionMap.get(c);
|
|
958
|
-
const newPos = newPositionMap.get(c);
|
|
959
|
-
const dx = oldPos.left - newPos.left;
|
|
960
|
-
const dy = oldPos.top - newPos.top;
|
|
961
|
-
if (dx || dy) {
|
|
962
|
-
const s = c.el.style;
|
|
963
|
-
s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;
|
|
964
|
-
s.transitionDuration = "0s";
|
|
965
|
-
return c;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
function hasCSSTransform(el, root, moveClass) {
|
|
969
|
-
const clone = el.cloneNode();
|
|
970
|
-
const _vtc = el[vtcKey];
|
|
971
|
-
if (_vtc) _vtc.forEach((cls) => {
|
|
972
|
-
cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
|
|
973
|
-
});
|
|
974
|
-
moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c));
|
|
975
|
-
clone.style.display = "none";
|
|
976
|
-
const container = root.nodeType === 1 ? root : root.parentNode;
|
|
977
|
-
container.appendChild(clone);
|
|
978
|
-
const { hasTransform } = getTransitionInfo(clone);
|
|
979
|
-
container.removeChild(clone);
|
|
980
|
-
return hasTransform;
|
|
981
|
-
}
|
|
982
|
-
const getModelAssigner = (vnode) => {
|
|
983
|
-
const fn = vnode.props["onUpdate:modelValue"] || false;
|
|
984
|
-
return shared.isArray(fn) ? (value) => shared.invokeArrayFns(fn, value) : fn;
|
|
985
|
-
};
|
|
986
|
-
function onCompositionStart(e) {
|
|
987
|
-
e.target.composing = true;
|
|
988
|
-
}
|
|
989
|
-
function onCompositionEnd(e) {
|
|
990
|
-
const target = e.target;
|
|
991
|
-
if (target.composing) {
|
|
992
|
-
target.composing = false;
|
|
993
|
-
target.dispatchEvent(new Event("input"));
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
const assignKey = Symbol("_assign");
|
|
997
|
-
const vModelText = {
|
|
998
|
-
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
999
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1000
|
-
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
1001
|
-
addEventListener(el, lazy ? "change" : "input", (e) => {
|
|
1002
|
-
if (e.target.composing) return;
|
|
1003
|
-
let domValue = el.value;
|
|
1004
|
-
if (trim) domValue = domValue.trim();
|
|
1005
|
-
if (castToNumber) domValue = shared.looseToNumber(domValue);
|
|
1006
|
-
el[assignKey](domValue);
|
|
1007
|
-
});
|
|
1008
|
-
if (trim) addEventListener(el, "change", () => {
|
|
1009
|
-
el.value = el.value.trim();
|
|
1010
|
-
});
|
|
1011
|
-
if (!lazy) {
|
|
1012
|
-
addEventListener(el, "compositionstart", onCompositionStart);
|
|
1013
|
-
addEventListener(el, "compositionend", onCompositionEnd);
|
|
1014
|
-
addEventListener(el, "change", onCompositionEnd);
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
mounted(el, { value }) {
|
|
1018
|
-
el.value = value == null ? "" : value;
|
|
1019
|
-
},
|
|
1020
|
-
beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
|
|
1021
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1022
|
-
if (el.composing) return;
|
|
1023
|
-
const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? shared.looseToNumber(el.value) : el.value;
|
|
1024
|
-
const newValue = value == null ? "" : value;
|
|
1025
|
-
if (elValue === newValue) return;
|
|
1026
|
-
if (document.activeElement === el && el.type !== "range") {
|
|
1027
|
-
if (lazy && value === oldValue) return;
|
|
1028
|
-
if (trim && el.value.trim() === newValue) return;
|
|
1029
|
-
}
|
|
1030
|
-
el.value = newValue;
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
|
-
const vModelCheckbox = {
|
|
1034
|
-
deep: true,
|
|
1035
|
-
created(el, _, vnode) {
|
|
1036
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1037
|
-
addEventListener(el, "change", () => {
|
|
1038
|
-
const modelValue = el._modelValue;
|
|
1039
|
-
const elementValue = getValue(el);
|
|
1040
|
-
const checked = el.checked;
|
|
1041
|
-
const assign = el[assignKey];
|
|
1042
|
-
if (shared.isArray(modelValue)) {
|
|
1043
|
-
const index = shared.looseIndexOf(modelValue, elementValue);
|
|
1044
|
-
const found = index !== -1;
|
|
1045
|
-
if (checked && !found) assign(modelValue.concat(elementValue));
|
|
1046
|
-
else if (!checked && found) {
|
|
1047
|
-
const filtered = [...modelValue];
|
|
1048
|
-
filtered.splice(index, 1);
|
|
1049
|
-
assign(filtered);
|
|
1050
|
-
}
|
|
1051
|
-
} else if (shared.isSet(modelValue)) {
|
|
1052
|
-
const cloned = new Set(modelValue);
|
|
1053
|
-
if (checked) cloned.add(elementValue);
|
|
1054
|
-
else cloned.delete(elementValue);
|
|
1055
|
-
assign(cloned);
|
|
1056
|
-
} else assign(getCheckboxValue(el, checked));
|
|
1057
|
-
});
|
|
1058
|
-
},
|
|
1059
|
-
mounted: setChecked,
|
|
1060
|
-
beforeUpdate(el, binding, vnode) {
|
|
1061
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1062
|
-
setChecked(el, binding, vnode);
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
|
-
function setChecked(el, { value, oldValue }, vnode) {
|
|
1066
|
-
el._modelValue = value;
|
|
1067
|
-
let checked;
|
|
1068
|
-
if (shared.isArray(value)) checked = shared.looseIndexOf(value, vnode.props.value) > -1;
|
|
1069
|
-
else if (shared.isSet(value)) checked = value.has(vnode.props.value);
|
|
1070
|
-
else {
|
|
1071
|
-
if (value === oldValue) return;
|
|
1072
|
-
checked = shared.looseEqual(value, getCheckboxValue(el, true));
|
|
1073
|
-
}
|
|
1074
|
-
if (el.checked !== checked) el.checked = checked;
|
|
1075
|
-
}
|
|
1076
|
-
const vModelRadio = {
|
|
1077
|
-
created(el, { value }, vnode) {
|
|
1078
|
-
el.checked = shared.looseEqual(value, vnode.props.value);
|
|
1079
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1080
|
-
addEventListener(el, "change", () => {
|
|
1081
|
-
el[assignKey](getValue(el));
|
|
1082
|
-
});
|
|
1083
|
-
},
|
|
1084
|
-
beforeUpdate(el, { value, oldValue }, vnode) {
|
|
1085
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1086
|
-
if (value !== oldValue) el.checked = shared.looseEqual(value, vnode.props.value);
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
const vModelSelect = {
|
|
1090
|
-
deep: true,
|
|
1091
|
-
created(el, { value, modifiers: { number } }, vnode) {
|
|
1092
|
-
const isSetModel = shared.isSet(value);
|
|
1093
|
-
addEventListener(el, "change", () => {
|
|
1094
|
-
const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? shared.looseToNumber(getValue(o)) : getValue(o));
|
|
1095
|
-
el[assignKey](el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]);
|
|
1096
|
-
el._assigning = true;
|
|
1097
|
-
runtimeCore.nextTick(() => {
|
|
1098
|
-
el._assigning = false;
|
|
1099
|
-
});
|
|
1100
|
-
});
|
|
1101
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1102
|
-
},
|
|
1103
|
-
mounted(el, { value }) {
|
|
1104
|
-
setSelected(el, value);
|
|
1105
|
-
},
|
|
1106
|
-
beforeUpdate(el, _binding, vnode) {
|
|
1107
|
-
el[assignKey] = getModelAssigner(vnode);
|
|
1108
|
-
},
|
|
1109
|
-
updated(el, { value }) {
|
|
1110
|
-
if (!el._assigning) setSelected(el, value);
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
function setSelected(el, value) {
|
|
1114
|
-
const isMultiple = el.multiple;
|
|
1115
|
-
const isArrayValue = shared.isArray(value);
|
|
1116
|
-
if (isMultiple && !isArrayValue && !shared.isSet(value)) {
|
|
1117
|
-
runtimeCore.warn(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
|
|
1118
|
-
return;
|
|
1119
|
-
}
|
|
1120
|
-
for (let i = 0, l = el.options.length; i < l; i++) {
|
|
1121
|
-
const option = el.options[i];
|
|
1122
|
-
const optionValue = getValue(option);
|
|
1123
|
-
if (isMultiple) if (isArrayValue) {
|
|
1124
|
-
const optionType = typeof optionValue;
|
|
1125
|
-
if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
|
|
1126
|
-
else option.selected = shared.looseIndexOf(value, optionValue) > -1;
|
|
1127
|
-
} else option.selected = value.has(optionValue);
|
|
1128
|
-
else if (shared.looseEqual(getValue(option), value)) {
|
|
1129
|
-
if (el.selectedIndex !== i) el.selectedIndex = i;
|
|
1130
|
-
return;
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1;
|
|
1134
|
-
}
|
|
1135
|
-
function getValue(el) {
|
|
1136
|
-
return "_value" in el ? el._value : el.value;
|
|
1137
|
-
}
|
|
1138
|
-
function getCheckboxValue(el, checked) {
|
|
1139
|
-
const key = checked ? "_trueValue" : "_falseValue";
|
|
1140
|
-
return key in el ? el[key] : checked;
|
|
1141
|
-
}
|
|
1142
|
-
const vModelDynamic = {
|
|
1143
|
-
created(el, binding, vnode) {
|
|
1144
|
-
callModelHook(el, binding, vnode, null, "created");
|
|
1145
|
-
},
|
|
1146
|
-
mounted(el, binding, vnode) {
|
|
1147
|
-
callModelHook(el, binding, vnode, null, "mounted");
|
|
1148
|
-
},
|
|
1149
|
-
beforeUpdate(el, binding, vnode, prevVNode) {
|
|
1150
|
-
callModelHook(el, binding, vnode, prevVNode, "beforeUpdate");
|
|
1151
|
-
},
|
|
1152
|
-
updated(el, binding, vnode, prevVNode) {
|
|
1153
|
-
callModelHook(el, binding, vnode, prevVNode, "updated");
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
function resolveDynamicModel(tagName, type) {
|
|
1157
|
-
switch (tagName) {
|
|
1158
|
-
case "SELECT": return vModelSelect;
|
|
1159
|
-
case "TEXTAREA": return vModelText;
|
|
1160
|
-
default: switch (type) {
|
|
1161
|
-
case "checkbox": return vModelCheckbox;
|
|
1162
|
-
case "radio": return vModelRadio;
|
|
1163
|
-
default: return vModelText;
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
1168
|
-
const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
|
|
1169
|
-
fn && fn(el, binding, vnode, prevVNode);
|
|
1170
|
-
}
|
|
1171
|
-
function initVModelForSSR() {
|
|
1172
|
-
vModelText.getSSRProps = ({ value }) => ({ value });
|
|
1173
|
-
vModelRadio.getSSRProps = ({ value }, vnode) => {
|
|
1174
|
-
if (vnode.props && shared.looseEqual(vnode.props.value, value)) return { checked: true };
|
|
1175
|
-
};
|
|
1176
|
-
vModelCheckbox.getSSRProps = ({ value }, vnode) => {
|
|
1177
|
-
if (shared.isArray(value)) {
|
|
1178
|
-
if (vnode.props && shared.looseIndexOf(value, vnode.props.value) > -1) return { checked: true };
|
|
1179
|
-
} else if (shared.isSet(value)) {
|
|
1180
|
-
if (vnode.props && value.has(vnode.props.value)) return { checked: true };
|
|
1181
|
-
} else if (value) return { checked: true };
|
|
1182
|
-
};
|
|
1183
|
-
vModelDynamic.getSSRProps = (binding, vnode) => {
|
|
1184
|
-
if (typeof vnode.type !== "string") return;
|
|
1185
|
-
const modelToUse = resolveDynamicModel(vnode.type.toUpperCase(), vnode.props && vnode.props.type);
|
|
1186
|
-
if (modelToUse.getSSRProps) return modelToUse.getSSRProps(binding, vnode);
|
|
1187
|
-
};
|
|
1188
|
-
}
|
|
1189
|
-
const systemModifiers = [
|
|
1190
|
-
"ctrl",
|
|
1191
|
-
"shift",
|
|
1192
|
-
"alt",
|
|
1193
|
-
"meta"
|
|
1194
|
-
];
|
|
1195
|
-
const modifierGuards = {
|
|
1196
|
-
stop: (e) => e.stopPropagation(),
|
|
1197
|
-
prevent: (e) => e.preventDefault(),
|
|
1198
|
-
self: (e) => e.target !== e.currentTarget,
|
|
1199
|
-
ctrl: (e) => !e.ctrlKey,
|
|
1200
|
-
shift: (e) => !e.shiftKey,
|
|
1201
|
-
alt: (e) => !e.altKey,
|
|
1202
|
-
meta: (e) => !e.metaKey,
|
|
1203
|
-
left: (e) => "button" in e && e.button !== 0,
|
|
1204
|
-
middle: (e) => "button" in e && e.button !== 1,
|
|
1205
|
-
right: (e) => "button" in e && e.button !== 2,
|
|
1206
|
-
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
1207
|
-
};
|
|
1208
|
-
const withModifiers = (fn, modifiers) => {
|
|
1209
|
-
const cache = fn._withMods || (fn._withMods = {});
|
|
1210
|
-
const cacheKey = modifiers.join(".");
|
|
1211
|
-
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
1212
|
-
for (let i = 0; i < modifiers.length; i++) {
|
|
1213
|
-
const guard = modifierGuards[modifiers[i]];
|
|
1214
|
-
if (guard && guard(event, modifiers)) return;
|
|
1215
|
-
}
|
|
1216
|
-
return fn(event, ...args);
|
|
1217
|
-
}));
|
|
1218
|
-
};
|
|
1219
|
-
const keyNames = {
|
|
1220
|
-
esc: "escape",
|
|
1221
|
-
space: " ",
|
|
1222
|
-
up: "arrow-up",
|
|
1223
|
-
left: "arrow-left",
|
|
1224
|
-
right: "arrow-right",
|
|
1225
|
-
down: "arrow-down",
|
|
1226
|
-
delete: "backspace"
|
|
1227
|
-
};
|
|
1228
|
-
const withKeys = (fn, modifiers) => {
|
|
1229
|
-
const cache = fn._withKeys || (fn._withKeys = {});
|
|
1230
|
-
const cacheKey = modifiers.join(".");
|
|
1231
|
-
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
1232
|
-
if (!("key" in event)) return;
|
|
1233
|
-
const eventKey = shared.hyphenate(event.key);
|
|
1234
|
-
if (modifiers.some((k) => k === eventKey || keyNames[k] === eventKey)) return fn(event);
|
|
1235
|
-
}));
|
|
1236
|
-
};
|
|
1237
|
-
const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
|
|
1238
|
-
let renderer;
|
|
1239
|
-
let enabledHydration = false;
|
|
1240
|
-
function ensureRenderer() {
|
|
1241
|
-
return renderer || (renderer = runtimeCore.createRenderer(rendererOptions));
|
|
1242
|
-
}
|
|
1243
|
-
function ensureHydrationRenderer() {
|
|
1244
|
-
renderer = enabledHydration ? renderer : runtimeCore.createHydrationRenderer(rendererOptions);
|
|
1245
|
-
enabledHydration = true;
|
|
1246
|
-
return renderer;
|
|
1247
|
-
}
|
|
1248
|
-
const render = ((...args) => {
|
|
1249
|
-
ensureRenderer().render(...args);
|
|
1250
|
-
});
|
|
1251
|
-
const hydrate = ((...args) => {
|
|
1252
|
-
ensureHydrationRenderer().hydrate(...args);
|
|
1253
|
-
});
|
|
1254
|
-
const createApp = ((...args) => {
|
|
1255
|
-
const app = ensureRenderer().createApp(...args);
|
|
1256
|
-
injectNativeTagCheck(app);
|
|
1257
|
-
injectCompilerOptionsCheck(app);
|
|
1258
|
-
const { mount } = app;
|
|
1259
|
-
app.mount = (containerOrSelector) => {
|
|
1260
|
-
const container = normalizeContainer(containerOrSelector);
|
|
1261
|
-
if (!container) return;
|
|
1262
|
-
const component = app._component;
|
|
1263
|
-
if (!shared.isFunction(component) && !component.render && !component.template) component.template = container.innerHTML;
|
|
1264
|
-
if (container.nodeType === 1) container.textContent = "";
|
|
1265
|
-
const proxy = mount(container, false, resolveRootNamespace(container));
|
|
1266
|
-
if (container instanceof Element) {
|
|
1267
|
-
container.removeAttribute("v-cloak");
|
|
1268
|
-
container.setAttribute("data-v-app", "");
|
|
1269
|
-
}
|
|
1270
|
-
return proxy;
|
|
1271
|
-
};
|
|
1272
|
-
return app;
|
|
1273
|
-
});
|
|
1274
|
-
const createSSRApp = ((...args) => {
|
|
1275
|
-
const app = ensureHydrationRenderer().createApp(...args);
|
|
1276
|
-
injectNativeTagCheck(app);
|
|
1277
|
-
injectCompilerOptionsCheck(app);
|
|
1278
|
-
const { mount } = app;
|
|
1279
|
-
app.mount = (containerOrSelector) => {
|
|
1280
|
-
const container = normalizeContainer(containerOrSelector);
|
|
1281
|
-
if (container) return mount(container, true, resolveRootNamespace(container));
|
|
1282
|
-
};
|
|
1283
|
-
return app;
|
|
1284
|
-
});
|
|
1285
|
-
function resolveRootNamespace(container) {
|
|
1286
|
-
if (container instanceof SVGElement) return "svg";
|
|
1287
|
-
if (typeof MathMLElement === "function" && container instanceof MathMLElement) return "mathml";
|
|
1288
|
-
}
|
|
1289
|
-
function injectNativeTagCheck(app) {
|
|
1290
|
-
Object.defineProperty(app.config, "isNativeTag", {
|
|
1291
|
-
value: (tag) => shared.isHTMLTag(tag) || shared.isSVGTag(tag) || shared.isMathMLTag(tag),
|
|
1292
|
-
writable: false
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
function injectCompilerOptionsCheck(app) {
|
|
1296
|
-
if (runtimeCore.isRuntimeOnly()) {
|
|
1297
|
-
const isCustomElement = app.config.isCustomElement;
|
|
1298
|
-
Object.defineProperty(app.config, "isCustomElement", {
|
|
1299
|
-
get() {
|
|
1300
|
-
return isCustomElement;
|
|
1301
|
-
},
|
|
1302
|
-
set() {
|
|
1303
|
-
runtimeCore.warn(`The \`isCustomElement\` config option is deprecated. Use \`compilerOptions.isCustomElement\` instead.`);
|
|
1304
|
-
}
|
|
1305
|
-
});
|
|
1306
|
-
const compilerOptions = app.config.compilerOptions;
|
|
1307
|
-
const msg = `The \`compilerOptions\` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, \`compilerOptions\` must be passed to \`@vue/compiler-dom\` in the build setup instead.
|
|
1308
|
-
- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.
|
|
1309
|
-
- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader
|
|
1310
|
-
- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc`;
|
|
1311
|
-
Object.defineProperty(app.config, "compilerOptions", {
|
|
1312
|
-
get() {
|
|
1313
|
-
runtimeCore.warn(msg);
|
|
1314
|
-
return compilerOptions;
|
|
1315
|
-
},
|
|
1316
|
-
set() {
|
|
1317
|
-
runtimeCore.warn(msg);
|
|
1318
|
-
}
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
function normalizeContainer(container) {
|
|
1323
|
-
if (shared.isString(container)) {
|
|
1324
|
-
const res = document.querySelector(container);
|
|
1325
|
-
if (!res) runtimeCore.warn(`Failed to mount app: mount target selector "${container}" returned null.`);
|
|
1326
|
-
return res;
|
|
1327
|
-
}
|
|
1328
|
-
if (window.ShadowRoot && container instanceof window.ShadowRoot && container.mode === "closed") runtimeCore.warn(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
1329
|
-
return container;
|
|
1330
|
-
}
|
|
1331
|
-
let ssrDirectiveInitialized = false;
|
|
1332
|
-
const initDirectivesForSSR = () => {
|
|
1333
|
-
if (!ssrDirectiveInitialized) {
|
|
1334
|
-
ssrDirectiveInitialized = true;
|
|
1335
|
-
initVModelForSSR();
|
|
1336
|
-
initVShowForSSR();
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
|
-
exports.Transition = Transition;
|
|
1340
|
-
exports.TransitionGroup = TransitionGroup;
|
|
1341
|
-
exports.VueElement = VueElement;
|
|
1342
|
-
exports.createApp = createApp;
|
|
1343
|
-
exports.createSSRApp = createSSRApp;
|
|
1344
|
-
exports.defineCustomElement = defineCustomElement;
|
|
1345
|
-
exports.defineSSRCustomElement = defineSSRCustomElement;
|
|
1346
|
-
exports.hydrate = hydrate;
|
|
1347
|
-
exports.initDirectivesForSSR = initDirectivesForSSR;
|
|
1348
|
-
exports.render = render;
|
|
1349
|
-
exports.useCssModule = useCssModule;
|
|
1350
|
-
exports.useCssVars = useCssVars;
|
|
1351
|
-
exports.useHost = useHost;
|
|
1352
|
-
exports.useShadowRoot = useShadowRoot;
|
|
1353
|
-
exports.vModelCheckbox = vModelCheckbox;
|
|
1354
|
-
exports.vModelDynamic = vModelDynamic;
|
|
1355
|
-
exports.vModelRadio = vModelRadio;
|
|
1356
|
-
exports.vModelSelect = vModelSelect;
|
|
1357
|
-
exports.vModelText = vModelText;
|
|
1358
|
-
exports.vShow = vShow;
|
|
1359
|
-
exports.withKeys = withKeys;
|
|
1360
|
-
exports.withModifiers = withModifiers;
|
|
1361
|
-
Object.keys(runtimeCore).forEach(function(k) {
|
|
1362
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeCore[k];
|
|
1363
|
-
});
|
|
1364
|
-
}) });
|
|
1365
|
-
|
|
1366
|
-
//#endregion
|
|
1367
|
-
export default require_runtime_dom_cjs();
|
|
1368
|
-
|
|
1369
|
-
export { require_runtime_dom_cjs };
|
|
1370
|
-
//# sourceMappingURL=runtime-dom.cjs.mjs.map
|