diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android-vendor.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android-vendor.js index 4dcfe8c83bf..3352ea03d3d 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android-vendor.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android-vendor.js @@ -18,7 +18,6 @@ module.exports = { library: 'hippyReactBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android.js index 20a4e1556a4..0ec17eea641 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.android.js @@ -22,7 +22,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyReactDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios-vendor.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios-vendor.js index 2d6134ae4d7..d452d0bd22b 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios-vendor.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios-vendor.js @@ -18,7 +18,6 @@ module.exports = { library: 'hippyReactBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios.js index ec799757cb5..481cbc5ab0a 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.ios.js @@ -22,7 +22,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyReactDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.dev.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.dev.js index b2ce0c97690..eddabd07d96 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.dev.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.dev.js @@ -29,7 +29,6 @@ module.exports = { globalObject: '(0, eval)("this")', }, plugins: [ - new webpack.NamedModulesPlugin(), new HtmlWebpackPlugin({ inject: true, scriptLoading: 'blocking', diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.js index d15bec933fd..376365e717a 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web-renderer.js @@ -17,7 +17,6 @@ module.exports = { path: path.resolve(`./dist/${platform}/`), }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.dev.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.dev.js index b3a6c539f7c..29938d273bd 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.dev.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.dev.js @@ -25,7 +25,6 @@ module.exports = { path: path.resolve(`./dist/${platform}/`), }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('development'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.js b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.js index 8a055cb4401..aa661369fc1 100644 --- a/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.js +++ b/driver/js/examples/hippy-react-demo/scripts/hippy-webpack.web.js @@ -18,7 +18,6 @@ module.exports = { path: path.resolve(`./dist/${platform}/`), }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android-vendor.js b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android-vendor.js index 7bd76b3a139..dd0a29d751d 100644 --- a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android-vendor.js +++ b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android-vendor.js @@ -31,7 +31,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android.js b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android.js index b7a42a1c073..ae08ea81ea0 100644 --- a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android.js +++ b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.android.js @@ -43,7 +43,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyVueDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios-vendor.js b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios-vendor.js index 9d04455b698..78b5ef6d2af 100644 --- a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios-vendor.js +++ b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios-vendor.js @@ -31,7 +31,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios.js b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios.js index f16be6650ca..891d9564a66 100644 --- a/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios.js +++ b/driver/js/examples/hippy-vue-demo/scripts/hippy-webpack.ios.js @@ -43,7 +43,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyVueDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android-vendor.js b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android-vendor.js index a8689aece99..9c6a2163ff7 100644 --- a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android-vendor.js +++ b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android-vendor.js @@ -19,7 +19,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android.js b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android.js index c6188b5a3ca..3fc2de49fc3 100644 --- a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android.js +++ b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.android.js @@ -31,7 +31,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyVueNextDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios-vendor.js b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios-vendor.js index a23657ec9fb..fdaa19a76ad 100644 --- a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios-vendor.js +++ b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios-vendor.js @@ -19,7 +19,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios.js b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios.js index a8154d41539..c8fed863d6c 100644 --- a/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios.js +++ b/driver/js/examples/hippy-vue-next-demo/scripts/hippy-webpack.ios.js @@ -31,7 +31,6 @@ module.exports = { // publicPath: 'https://xxx/hippy/hippyVueNextDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.android.vendor.js b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.android.vendor.js index 85e8b860784..a3d1b8c5b97 100644 --- a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.android.vendor.js +++ b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.android.vendor.js @@ -19,7 +19,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.base.js b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.base.js index 36b6537e19d..f8f9fd519ee 100644 --- a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.base.js +++ b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.base.js @@ -41,7 +41,6 @@ exports.getWebpackSsrBaseConfig = function (platform, env) { // publicPath: 'https://xxx/hippy/hippyVueNextDemo/', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(env), diff --git a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.dev.js b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.dev.js index cab3754f326..93639869aca 100644 --- a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.dev.js +++ b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.dev.js @@ -63,7 +63,6 @@ module.exports = { globalObject: '(0, eval)("this")', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('development'), diff --git a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.ios.vendor.js b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.ios.vendor.js index 6783d5a86ba..140d016aad2 100644 --- a/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.ios.vendor.js +++ b/driver/js/examples/hippy-vue-next-ssr-demo/scripts/webpack-ssr-config/client.ios.vendor.js @@ -19,7 +19,6 @@ module.exports = { library: 'hippyVueBase', }, plugins: [ - new webpack.NamedModulesPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'), __PLATFORM__: JSON.stringify(platform), diff --git a/driver/js/package-lock.json b/driver/js/package-lock.json index 0bd36f8307a..92ce6f2b0f8 100644 --- a/driver/js/package-lock.json +++ b/driver/js/package-lock.json @@ -58,7 +58,7 @@ "trim-newlines": "^3.0.1", "ts-jest": "^27.1.2", "tslib": "^2.3.1", - "ttypescript": "^1.5.13", + "ttypescript": "~1.5.15", "typescript": "^4.8.3", "typescript-transform-paths": "^3.3.1", "vue": "^2.6.14", diff --git a/driver/js/package.json b/driver/js/package.json index 380bf2bd007..b5ef495b306 100644 --- a/driver/js/package.json +++ b/driver/js/package.json @@ -61,6 +61,7 @@ "module-alias": "^2.2.2", "nyc": "^15.1.0", "path-to-regexp": "^1.7.0", + "postcss-class-prefix": "~0.3.0", "react": "^17.0.2", "rimraf": "^2.6.3", "rollup": "^2.79.1", @@ -73,12 +74,11 @@ "trim-newlines": "^3.0.1", "ts-jest": "^27.1.2", "tslib": "^2.3.1", - "ttypescript": "^1.5.13", + "ttypescript": "~1.5.15", "typescript": "^4.8.3", "typescript-transform-paths": "^3.3.1", "vue": "^2.6.14", - "watch": "^0.13.0", - "postcss-class-prefix": "~0.3.0" + "watch": "^0.13.0" }, "_moduleAliases": { "vue": "node_modules/vue/src/core/index", diff --git a/driver/js/packages/hippy-vue-css-loader/src/css-loader.ts b/driver/js/packages/hippy-vue-css-loader/src/css-loader.ts index 9544b8bd140..7bb3b17ee38 100644 --- a/driver/js/packages/hippy-vue-css-loader/src/css-loader.ts +++ b/driver/js/packages/hippy-vue-css-loader/src/css-loader.ts @@ -32,17 +32,14 @@ let sourceId = 0; function hippyVueCSSLoader(this: any, source: any) { const options = getOptions(this); const parsed = parseCSS(source, { source: sourceId }); - - const majorNodeVersion = parseInt(process.versions.node.split('.')[0], 10); - const hashType = majorNodeVersion >= 17 ? 'md5' : 'md4'; - const hash = crypto.createHash(hashType); + const hash = crypto.createHash('shake256', { outputLength: 3 }); const contentHash = hash.update(source).digest('hex'); sourceId += 1; - const rulesAst = parsed.stylesheet.rules.filter((n: any) => n.type === 'rule').map((n: any) => ({ - hash: contentHash, - selectors: n.selectors, - - declarations: n.declarations.map((dec: any) => { + const rulesAst = parsed.stylesheet.rules.filter((n: any) => n.type === 'rule').map((n: any) => ([ + contentHash, + n.selectors, + // filter comment declaration and empty declaration + n.declarations.filter(dec => dec.type !== 'comment').map((dec: any) => { let { value } = dec; const isVariableColor = dec.property?.startsWith('-') && typeof value === 'string' && ( @@ -55,18 +52,14 @@ function hippyVueCSSLoader(this: any, source: any) { if (dec.property && (dec.property.toLowerCase().indexOf('color') > -1 || isVariableColor)) { value = translateColor(value); } - return { - type: dec.type, - property: dec.property, - value, - }; + return [dec.property, value]; }), - })); - const code = `(function() { - if (!global['${GLOBAL_STYLE_NAME}']) { - global['${GLOBAL_STYLE_NAME}'] = []; + ])).filter(rule => rule[2].length > 0); + const code = `(function(n) { + if (!global[n]) { + global[n] = []; } - global['${GLOBAL_STYLE_NAME}'] = global['${GLOBAL_STYLE_NAME}'].concat(${JSON.stringify(rulesAst)}); + global[n] = global[n].concat(${JSON.stringify(rulesAst)}); if(module.hot) { module.hot.dispose(() => { @@ -77,7 +70,7 @@ function hippyVueCSSLoader(this: any, source: any) { global['${GLOBAL_DISPOSE_STYLE_NAME}'] = global['${GLOBAL_DISPOSE_STYLE_NAME}'].concat('${contentHash}'); }) } - })()`; + })('${GLOBAL_STYLE_NAME}')`; return `module.exports=${code}`; } diff --git a/driver/js/packages/hippy-vue-next-style-parser/__test__/style-parser/color-parser.test.ts b/driver/js/packages/hippy-vue-next-style-parser/__test__/style-parser/color-parser.test.ts index 63c80787226..0ea0931fe24 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/__test__/style-parser/color-parser.test.ts +++ b/driver/js/packages/hippy-vue-next-style-parser/__test__/style-parser/color-parser.test.ts @@ -42,6 +42,7 @@ describe('style-parser/color-parser.ts', () => { expect(translateColor('transparent')).toEqual(0); expect(translateColor('blueviolet')).toEqual(4287245282); expect(translateColor(4287245282)).toEqual(3808397867); + // FIXME custom variable expect(translateColor('var(-Bg)')).toEqual('var(-Bg)'); }); diff --git a/driver/js/packages/hippy-vue-next-style-parser/src/style-match/css-map.ts b/driver/js/packages/hippy-vue-next-style-parser/src/style-match/css-map.ts index 29e021fa60a..2eb77cef3ac 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/src/style-match/css-map.ts +++ b/driver/js/packages/hippy-vue-next-style-parser/src/style-match/css-map.ts @@ -34,6 +34,9 @@ import { SelectorsMap } from './css-selectors-match'; import { parseSelector } from './parser'; import { HIPPY_GLOBAL_STYLE_NAME, HIPPY_GLOBAL_DISPOSE_STYLE_NAME } from './'; +type Declaration = [property: string, value: string | number]; +export type ASTRule = [hash: string, selectors: string[], declarations: Declaration[]]; + // style load hook const beforeLoadStyleHook: Function = (declaration: Function): Function => declaration; @@ -70,7 +73,7 @@ function createSimpleSelectorFromAst(ast) { ? new AttributeSelector(ast.property, ast.test, ast.value) : new AttributeSelector(ast.property); default: - return null; + return new InvalidSelector(new Error('Unknown selector.'));; } } @@ -125,10 +128,23 @@ function createSelector(sel) { * @param beforeLoadStyle */ export function fromAstNodes( - astRules: CssAttribute[] = [], + astRules: Array = [], beforeLoadStyle?: Function, ): RuleSet[] { - return astRules.map((rule) => { + const rules = astRules.map(rule => { + if (!Array.isArray(rule)) return rule; + const [hash, selectors, declarations] = rule as ASTRule; + return { + hash, + selectors, + declarations: declarations.map(([property, value]) => ({ + type: 'declaration', + property, + value, + })), + }; + }); + return rules.map((rule) => { const declarations = rule.declarations .filter(isDeclaration) // use default hook when there is no hook passed in diff --git a/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts b/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts index 45de07d0e4b..b0c7f1f9093 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts +++ b/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts @@ -135,7 +135,7 @@ const LINEAR_GRADIENT_DIRECTION_MAP = { }; // degree unit -const DEGREE_UNIT = { +export const DEGREE_UNIT = { TURN: 'turn', RAD: 'rad', DEG: 'deg', diff --git a/driver/js/packages/hippy-vue-next/__test__/patch-prop.test.ts b/driver/js/packages/hippy-vue-next/__test__/patch-prop.test.ts index 78758be4c88..c2383e5a01d 100644 --- a/driver/js/packages/hippy-vue-next/__test__/patch-prop.test.ts +++ b/driver/js/packages/hippy-vue-next/__test__/patch-prop.test.ts @@ -30,50 +30,53 @@ import { registerElement, type ElementComponent } from '../src/runtime/component describe('patch-prop.ts', () => { it('patch class prop', () => { const element = nodeOps.createElement('div'); - patchProp(element, 'class', '', 'wrapper', false, undefined, null); + patchProp(element, 'class', '', 'wrapper'); expect(element.classList).toEqual(new Set().add('wrapper')); - patchProp(element, 'class', 'wrapper', '', false, undefined, null); + patchProp(element, 'class', 'wrapper', ''); expect(element.classList).toEqual(new Set()); - patchProp(element, 'class', '', 'header', false, undefined, null); + patchProp(element, 'class', '', 'header'); expect(element.classList).toEqual(new Set().add('header')); - patchProp(element, 'class', '', null, false, undefined, null); + patchProp(element, 'class', '', null); expect(element.classList).toEqual(new Set()); }); it('patch style prop', () => { const element = nodeOps.createElement('div'); expect(element.style).toEqual({ display: undefined }); - patchProp(element, 'style', {}, { width: '100px', height: 200 }, false, undefined, null); + patchProp(element, 'style', {}, { width: '100px', height: 200 }); expect(element.style).toEqual({ width: 100, height: 200, display: undefined, }); - patchProp(element, 'style', {}, { width: undefined, height: undefined }, false, undefined, null); + patchProp(element, 'style', {}, { width: undefined, height: undefined }); + // FIXME: it shouldn't has size value here. expect(element.style).toEqual({ display: undefined, + height: 200, + width: 100, }); - patchProp(element, 'style', {}, undefined, false, undefined, null); + patchProp(element, 'style', {}, undefined); expect(element.style).toEqual({}); // style could not be string - expect(() => patchProp(element, 'style', {}, 'new style', false, undefined, null)).toThrow(Error); + expect(() => patchProp(element, 'style', {}, 'new style')).toThrow(Error); - patchProp(element, 'style', { width: 100 }, { height: 100 }, false, undefined, null); + patchProp(element, 'style', { width: 100 }, { height: 100 }); expect(element.style).toEqual({ height: 100, }); - patchProp(element, 'style', { width: 100 }, { height: 100, width: null }, false, undefined, null); + patchProp(element, 'style', { width: 100 }, { height: 100, width: null }); expect(element.style).toEqual({ height: 100, }); - patchProp(element, 'style', { width: 100 }, {}, false, undefined, null); + patchProp(element, 'style', { width: 100 }, {}); expect(element.style).toEqual({}); - patchProp(element, 'style', { width: 100 }, null, false, undefined, null); + patchProp(element, 'style', { width: 100 }, null); expect(element.style).toEqual({}); }); @@ -89,41 +92,42 @@ describe('patch-prop.ts', () => { const element = nodeOps.createElement('div'); preCacheNode(element, element.nodeId); const noop = () => {}; - patchProp(element, 'onClick', null, noop, false, undefined, null); + patchProp(element, 'onClick', null, noop); let listeners = element.getEventListenerList(); expect(listeners?.click?.[0].callback).toBeDefined(); - patchProp(element, 'onClick', null, null, false, undefined, null); + patchProp(element, 'onClick', null, null); listeners = element.getEventListenerList(); expect(listeners?.click).toBeUndefined(); let sign = 0; patchProp(element, 'onClickOnce', null, () => { sign += 1; - }, false, undefined, null); + }); listeners = element.getEventListenerList(); expect(listeners?.click?.[0].callback).toBeDefined(); const clickEvent = { id: element.nodeId, name: 'onClick', }; + // FIXME: receiveNativeGesture is not exist eventDispatcher.receiveNativeGesture(clickEvent); expect(sign).toEqual(1); eventDispatcher.receiveNativeGesture(clickEvent); expect(sign).toEqual(1); // test custom event - patchProp(element, 'on:Drop', null, noop, false, undefined, null); + patchProp(element, 'on:Drop', null, noop); listeners = element.getEventListenerList(); expect(listeners?.drop?.[0].callback).toBeDefined(); }); it('patch attribute prop', () => { const element = nodeOps.createElement('div'); - patchProp(element, 'source', '', 'inner', false, undefined, null); + patchProp(element, 'source', '', 'inner'); expect(element.attributes.source).toEqual('inner'); - patchProp(element, 'source', 'inner', '', false, undefined, null); + patchProp(element, 'source', 'inner', ''); expect(element.attributes.source).toEqual(''); - patchProp(element, 'source', 'inner', null, false, undefined, null); + patchProp(element, 'source', 'inner', null); expect(element.attributes.source).toBeUndefined(); }); }); diff --git a/driver/js/packages/hippy-vue-next/src/patch-prop.ts b/driver/js/packages/hippy-vue-next/src/patch-prop.ts index cce120b8093..bcd4b6b5be8 100644 --- a/driver/js/packages/hippy-vue-next/src/patch-prop.ts +++ b/driver/js/packages/hippy-vue-next/src/patch-prop.ts @@ -29,9 +29,10 @@ import { patchAttr } from './modules/attrs'; import { patchClass } from './modules/class'; import { patchEvent } from './modules/events'; import { patchStyle } from './modules/style'; +import type { HippyElement } from './runtime/element/hippy-element'; export function patchProp( - el: NeedToTyped, + el: HippyElement, key: string, prevValue: NeedToTyped, nextValue: NeedToTyped, diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js index b797fd5968a..bf62b6edf18 100644 --- a/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js +++ b/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[0],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:["#async-component-http"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"height",value:200},{type:"declaration",property:"width",value:300},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:[".async-txt"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-http.vue":function(e,t,o){"use strict";o.r(t);var s=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportHttp"}),d=(o("./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const c=o.n(d)()(a,[["render",function(e,t,o,n,a,d){return Object(s.t)(),Object(s.f)("div",{id:"async-component-http",class:"local-local"},[Object(s.g)("p",{class:"async-txt"}," 我是远程异步组件 ")])}]]);t.default=c},"./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css")}}]); \ No newline at end of file +((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[0],{80:function(t,n,c){(function(n){var c;t.exports=(n[c="__HIPPY_VUE_STYLES__"]||(n[c]=[]),void(n[c]=n[c].concat([["2c139c",["#async-component-http"],[["display","flex"],["flexDirection","column"],["alignItems","center"],["justifyContent","center"],["position","relative"],["height",200],["width",300],["backgroundColor",4283484818],["borderRadius",10],["marginBottom",10]]],["2c139c",[".async-txt"],[["color",4278190080]]]])))}).call(this,c(5))},82:function(t,n,c){"use strict";c(80)},84:function(t,n,c){"use strict";c.r(n);var e=c(0);var o=c(1),i=Object(o.defineComponent)({name:"DynamicImportHttp"}),a=(c(82),c(3));const s=c.n(a)()(i,[["render",function(t,n,c,o,i,a){return Object(e.t)(),Object(e.f)("div",{id:"async-component-http",class:"local-local"},[Object(e.g)("p",{class:"async-txt"}," 我是远程异步组件 ")])}]]);n.default=s}}]); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js index fe5ad672f63..ab4053b04f7 100644 --- a/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js +++ b/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[1],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,t){(function(o){e.exports=(o.__HIPPY_VUE_STYLES__||(o.__HIPPY_VUE_STYLES__=[]),void(o.__HIPPY_VUE_STYLES__=o.__HIPPY_VUE_STYLES__.concat([{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-component-local[data-v-8399ef12]"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-txt[data-v-8399ef12]"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,t("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-local.vue":function(e,o,t){"use strict";t.r(o);var s=t("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=t("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportLocal"}),c=(t("./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css"),t("./node_modules/vue-loader/dist/exportHelper.js"));const d=t.n(c)()(a,[["render",function(e,o,t,n,a,c){return Object(s.t)(),Object(s.f)("div",{class:"async-component-local"},[Object(s.g)("p",{class:"async-txt"}," 我是本地异步组件 ")])}],["__scopeId","data-v-8399ef12"]]);o.default=d},"./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,t){"use strict";t("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css")}}]); \ No newline at end of file +((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[1],{79:function(t,n,e){(function(n){var e;t.exports=(n[e="__HIPPY_VUE_STYLES__"]||(n[e]=[]),void(n[e]=n[e].concat([["1386bd",[".async-component-local[data-v-8399ef12]"],[["display","flex"],["flexDirection","column"],["alignItems","center"],["justifyContent","center"],["position","relative"],["backgroundColor",4283484818],["borderRadius",10],["marginBottom",10]]],["1386bd",[".async-txt[data-v-8399ef12]"],[["color",4278190080]]]])))}).call(this,e(5))},81:function(t,n,e){"use strict";e(79)},83:function(t,n,e){"use strict";e.r(n);var c=e(0);var o=e(1),a=Object(o.defineComponent)({name:"DynamicImportLocal"}),s=(e(81),e(3));const i=e.n(s)()(a,[["render",function(t,n,e,o,a,s){return Object(c.t)(),Object(c.f)("div",{class:"async-component-local"},[Object(c.g)("p",{class:"async-txt"}," 我是本地异步组件 ")])}],["__scopeId","data-v-8399ef12"]]);n.default=i}}]); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/index.android.js b/framework/examples/android-demo/res/vue3/index.android.js index d4b2e90940e..be9cd8d1b9f 100644 --- a/framework/examples/android-demo/res/vue3/index.android.js +++ b/framework/examples/android-demo/res/vue3/index.android.js @@ -19,4 +19,4 @@ const n="undefined"!=typeof document;function r(e){return e.__esModule||"Module" **/ "undefined"!=typeof document&&document;const r=Symbol("_vtc"),l=(e,{slots:t})=>Object(a.h)(a.BaseTransition,d(e),t);l.displayName="Transition";const c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},s=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.i)(e)?e.some(e=>e.length>1):e.length>1);function d(e){const t={};for(const o in e)o in c||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:l=o+"-enter-from",enterActiveClass:d=o+"-enter-active",enterToClass:v=o+"-enter-to",appearFromClass:m=l,appearActiveClass:g=d,appearToClass:h=v,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:w=o+"-leave-to"}=e,x=function(e){if(null==e)return null;if(Object(n.n)(e))return[p(e.enter),p(e.leave)];{const t=p(e);return[t,t]}}(r),S=x&&x[0],A=x&&x[1],{onBeforeEnter:C,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:L=C,onAppear:I=k,onAppearCancelled:D=P}=t,V=(e,t,o)=>{b(e,t?h:v),b(e,t?g:d),o&&o()},Y=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},H=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);s(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),i(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){s(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){s(L,[e]),u(e,m),u(e,g)},onEnter:H(!1),onAppear:H(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>Y(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),i(E)||f(e,a,A,o))}),s(E,[e,o])},onEnterCancelled(e){V(e,!1),s(P,[e])},onAppearCancelled(e){V(e,!0),s(D,[e])},onLeaveCancelled(e){Y(e),s(T,[e])}})}function p(e){return Object(n.x)(e)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[r]||(e[r]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[r];o&&(o.delete(t),o.size||(e[r]=void 0))}function y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v=0;function f(e,t,o,a){const n=e._endId=++v,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:s}=m(e,t);if(!l)return a();const i=l+"end";let d=0;const p=()=>{e.removeEventListener(i,u),r()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),s=a("animationDuration"),i=g(c,s);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?i>0&&(d="animation",p=i,u=s.length):(p=Math.max(l,i),d=p>0?l>i?"transition":"animation":null,u=d?"transition"===d?r.length:s.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthh(t)+h(e[o])))}function h(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const O=Symbol("_vod"),_=Symbol("_vsh"),w={beforeMount(e,{value:t},{transition:o}){e[O]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):x(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:a}){!t!=!o&&(a?t?(a.beforeEnter(e),x(e,!0),a.enter(e)):a.leave(e,()=>{x(e,!1)}):x(e,t))},beforeUnmount(e,{value:t}){x(e,t)}};function x(e,t){e.style.display=t?e[O]:"none",e[_]=!t}Symbol("");Symbol("_vei"); /*! #__NO_SIDE_EFFECTS__ */ -"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); diff --git a/framework/examples/android-demo/res/vue3/vendor-manifest.json b/framework/examples/android-demo/res/vue3/vendor-manifest.json index 4a7252c7cef..783c9df4584 100644 --- a/framework/examples/android-demo/res/vue3/vendor-manifest.json +++ b/framework/examples/android-demo/res/vue3/vendor-manifest.json @@ -1 +1 @@ -{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/dist/index.js":{"id":"../../packages/hippy-vue-next/dist/index.js","buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"./node_modules/process/browser.js":{"id":"./node_modules/process/browser.js","buildMeta":{"providedExports":true}},"./node_modules/webpack/buildin/global.js":{"id":"./node_modules/webpack/buildin/global.js","buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":"./scripts/vendor.js","buildMeta":{"providedExports":true}}}} \ No newline at end of file +{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":0,"buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":1,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"./node_modules/webpack/buildin/global.js":{"id":2,"buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":4,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/dist/index.js":{"id":5,"buildMeta":{"providedExports":true}},"./node_modules/process/browser.js":{"id":6,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":7,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}}}} \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/vendor.android.js b/framework/examples/android-demo/res/vue3/vendor.android.js index a1493bdc41b..8589f9ffb51 100644 --- a/framework/examples/android-demo/res/vue3/vendor.android.js +++ b/framework/examples/android-demo/res/vue3/vendor.android.js @@ -1,4 +1,16 @@ -var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ +var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";n.r(t),function(e){ +/** +* @vue/shared v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return xe})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return p})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return x})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return A})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return fe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return Ae})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ie})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return T})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),T=e=>N(e).slice(8,-1),x=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},k=/-(\w)/g,P=I(e=>e.replace(k,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=I(e=>e.replace(R,"-$1").toLowerCase()),L=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=I(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n];if(O(r)||"number"==typeof r){t+=`${n.startsWith("--")?n:M(n)}:${r};`}}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>!(!e||!0!==e.__v_isRef),Ie=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?Ce(e)?Ie(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>Ce(t)?ke(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Pe(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Pe(e))}:_(t)?Pe(t):!E(t)||h(t)||x(t)?t:String(t),Pe=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n(2))},function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return nt})),n.d(t,"TrackOpTypes",(function(){return et})),n.d(t,"TriggerOpTypes",(function(){return tt})),n.d(t,"computed",(function(){return Pe})),n.d(t,"customRef",(function(){return Ke})),n.d(t,"deferredComputed",(function(){return Qe})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return xe})),n.d(t,"isReactive",(function(){return we})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ae})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return We})),n.d(t,"reactive",(function(){return be})),n.d(t,"readonly",(function(){return _e})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return Oe})),n.d(t,"shallowReadonly",(function(){return Ee})),n.d(t,"shallowRef",(function(){return De})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return je})),n.d(t,"toRef",(function(){return Xe})),n.d(t,"toRefs",(function(){return Ge})),n.d(t,"toValue",(function(){return He})),n.d(t,"track",(function(){return P})),n.d(t,"trigger",(function(){return R})),n.d(t,"triggerRef",(function(){return $e})),n.d(t,"unref",(function(){return Ue}));var r=n(0); +/** +* @vue/reactivity v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let o,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),S()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=y,t=i;try{return y=!0,i=this,this._runnings++,p(this),this.fn()}finally{h(this),this._runnings--,i=t,y=e}}stop(){this.active&&(p(this),h(this),this.onStop&&this.onStop(),this.active=!1)}}function f(e){return e.value}function p(e){e._trackId++,e._depsLength=0}function h(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(Object(r.extend)(n,t),t.scope&&a(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function g(e){e.effect.stop()}let y=!0,b=0;const O=[];function _(){O.push(y),y=!1}function E(){O.push(y),y=!0}function S(){const e=O.pop();y=void 0===e||e}function w(){b++}function N(){for(b--;!b&&x.length;)x.shift()()}function T(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&m(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const x=[];function j(e,t,n){w();for(const n of e.keys()){let r;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},C=new WeakMap,I=Symbol(""),k=Symbol("");function P(e,t,n){if(y&&i){let t=C.get(e);t||C.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=A(()=>t.delete(n))),T(i,r)}}function R(e,t,n,o,i,s){const c=C.get(e);if(!c)return;let a=[];if("clear"===t)a=[...c.values()];else if("length"===n&&Object(r.isArray)(e)){const e=Number(o);c.forEach((t,n)=>{("length"===n||!Object(r.isSymbol)(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(I)),Object(r.isMap)(e)&&a.push(c.get(k)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(I)),Object(r.isMap)(e)&&a.push(c.get(k)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(I))}w();for(const e of a)e&&j(e,4);N()}const M=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),F=D();function D(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=je(this);for(let e=0,t=this.length;e{e[t]=function(...e){_(),w();const n=je(this)[t].apply(this,e);return N(),S(),n}}),e}function V(e){Object(r.isSymbol)(e)||(e=String(e));const t=je(this);return P(t,0,e),t.hasOwnProperty(e)}class B{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?ye:ge:i?ve:me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=Object(r.isArray)(e);if(!o){if(s&&Object(r.hasOwn)(F,t))return Reflect.get(F,t,n);if("hasOwnProperty"===t)return V}const c=Reflect.get(e,t,n);return(Object(r.isSymbol)(t)?L.has(t):M(t))?c:(o||P(e,0,t),i?c:Le(c)?s&&Object(r.isIntegerKey)(t)?c:c.value:Object(r.isObject)(c)?o?_e(c):be(c):c)}}class $ extends B{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Ne(i);if(Te(n)||Ne(n)||(i=je(i),n=je(n)),!Object(r.isArray)(e)&&Le(i)&&!Le(n))return!t&&(i.value=n,!0)}const s=Object(r.isArray)(e)&&Object(r.isIntegerKey)(t)?Number(t)e,G=e=>Reflect.getPrototypeOf(e);function q(e,t,n=!1,o=!1){const i=je(e=e.__v_raw),s=je(t);n||(Object(r.hasChanged)(t,s)&&P(i,0,t),P(i,0,s));const{has:c}=G(i),a=o?K:n?Ie:Ce;return c.call(i,t)?a(e.get(t)):c.call(i,s)?a(e.get(s)):void(e!==i&&e.get(t))}function J(e,t=!1){const n=this.__v_raw,o=je(n),i=je(e);return t||(Object(r.hasChanged)(e,i)&&P(o,0,e),P(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function X(e,t=!1){return e=e.__v_raw,!t&&P(je(e),0,I),Reflect.get(e,"size",e)}function Z(e,t=!1){t||Te(e)||Ne(e)||(e=je(e));const n=je(this);return G(n).has.call(n,e)||(n.add(e),R(n,"add",e,e)),this}function Q(e,t,n=!1){n||Te(t)||Ne(t)||(t=je(t));const o=je(this),{has:i,get:s}=G(o);let c=i.call(o,e);c||(e=je(e),c=i.call(o,e));const a=s.call(o,e);return o.set(e,t),c?Object(r.hasChanged)(t,a)&&R(o,"set",e,t):R(o,"add",e,t),this}function ee(e){const t=je(this),{has:n,get:r}=G(t);let o=n.call(t,e);o||(e=je(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&R(t,"delete",e,void 0),i}function te(){const e=je(this),t=0!==e.size,n=e.clear();return t&&R(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,r){const o=this,i=o.__v_raw,s=je(i),c=t?K:e?Ie:Ce;return!e&&P(s,0,I),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function re(e,t,n){return function(...o){const i=this.__v_raw,s=je(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?K:t?Ie:Ce;return!t&&P(s,0,l?k:I),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ie(){const e={get(e){return q(this,e)},get size(){return X(this)},has:J,add:Z,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return q(this,e,!1,!0)},get size(){return X(this)},has:J,add(e){return Z.call(this,e,!0)},set(e,t){return Q.call(this,e,t,!0)},delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return q(this,e,!0)},get size(){return X(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return q(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)}),[e,n,t,r]}const[se,ce,ae,le]=ie();function ue(e,t){const n=t?e?le:ae:e?ce:se;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const de={get:ue(!1,!1)},fe={get:ue(!1,!0)},pe={get:ue(!0,!1)},he={get:ue(!0,!0)};const me=new WeakMap,ve=new WeakMap,ge=new WeakMap,ye=new WeakMap;function be(e){return Ne(e)?e:Se(e,!1,H,de,me)}function Oe(e){return Se(e,!1,W,fe,ve)}function _e(e){return Se(e,!0,Y,pe,ge)}function Ee(e){return Se(e,!0,z,he,ye)}function Se(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function we(e){return Ne(e)?we(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function Te(e){return!(!e||!e.__v_isShallow)}function xe(e){return!!e&&!!e.__v_raw}function je(e){const t=e&&e.__v_raw;return t?je(t):e}function Ae(e){return Object.isExtensible(e)&&Object(r.def)(e,"__v_skip",!0),e}const Ce=e=>Object(r.isObject)(e)?be(e):e,Ie=e=>Object(r.isObject)(e)?_e(e):e;class ke{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new d(()=>e(this._value),()=>Me(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=je(this);return e._cacheable&&!e.effect.dirty||!Object(r.hasChanged)(e._value,e._value=e.effect.run())||Me(e,4),Re(e),e.effect._dirtyLevel>=2&&Me(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Pe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new ke(o,i,s||!i,n)}function Re(e){var t;y&&i&&(e=je(e),T(i,null!=(t=e.dep)?t:e.dep=A(()=>e.dep=void 0,e instanceof ke?e:void 0)))}function Me(e,t=4,n,r){const o=(e=je(e)).dep;o&&j(o,t)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return Ve(e,!1)}function De(e){return Ve(e,!0)}function Ve(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:je(e),this._value=t?e:Ce(e)}get value(){return Re(this),this._value}set value(e){const t=this.__v_isShallow||Te(e)||Ne(e);if(e=t?e:je(e),Object(r.hasChanged)(e,this._rawValue)){this._rawValue;this._rawValue=e,this._value=t?e:Ce(e),Me(this,4)}}}function $e(e){Me(e,4)}function Ue(e){return Le(e)?e.value:e}function He(e){return Object(r.isFunction)(e)?e():Ue(e)}const Ye={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function We(e){return we(e)?e:new Proxy(e,Ye)}class ze{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ke(e){return new ze(e)}function Ge(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=Ze(e,n);return t}class qe{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=C.get(e);return n&&n.get(t)}(je(this._object),this._key)}}class Je{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xe(e,t,n){return Le(e)?e:Object(r.isFunction)(e)?new Je(e):Object(r.isObject)(e)&&arguments.length>1?Ze(e,t,n):Fe(e)}function Ze(e,t,n){const r=e[t];return Le(r)?r:new qe(e,t,n)}const Qe=Pe,et={GET:"get",HAS:"has",ITERATE:"iterate"},tt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},nt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=n},function(e,t,n){n(5)},function(e,t,n){"use strict";(function(e,r){ /*! * @hippy/vue-next v3.3.1 * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) @@ -41,4 +53,4 @@ const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.len * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return Te})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return f})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return T})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return k})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return pe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return ke})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ce})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return x})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),x=e=>N(e).slice(8,-1),T=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=A(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=A(e=>e.replace(R,"-$1").toLowerCase()),L=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=A(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:M(n);(O(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>t&&t.__v_isRef?Ae(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:_(t)?Ie(t):!E(t)||h(t)||T(t)?t:String(t),Ie=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;nn.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return Te})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return f})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return T})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return k})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return pe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return ke})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ce})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return x})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),x=e=>N(e).slice(8,-1),T=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=A(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=A(e=>e.replace(R,"-$1").toLowerCase()),L=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=A(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:M(n);(O(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>t&&t.__v_isRef?Ae(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:_(t)?Ie(t):!E(t)||h(t)||T(t)?t:String(t),Ie=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n".concat(e,""):"mathml"===n?"".concat(e,""):e;var c=x.content;if("svg"===n||"mathml"===n){for(var i=c.firstChild;i.firstChild;)c.appendChild(i.firstChild);c.removeChild(i)}t.insertBefore(c,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},S=Symbol("_vtc"),A=function(e,t){var o=t.slots;return Object(n.h)(n.BaseTransition,E(e),o)};A.displayName="Transition";var k={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},C=(A.props=Object(g.e)({},n.BaseTransitionPropsValidators,k),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object(g.i)(e)?e.forEach((function(e){return e.apply(void 0,m()(t))})):e&&e.apply(void 0,m()(t))}),P=function(e){return!!e&&(Object(g.i)(e)?e.some((function(e){return e.length>1})):e.length>1)};function E(e){var t={};for(var o in e)o in k||(t[o]=e[o]);if(!1===e.css)return t;var n=e.name,a=void 0===n?"v":n,r=e.type,l=e.duration,c=e.enterFromClass,i=void 0===c?"".concat(a,"-enter-from"):c,s=e.enterActiveClass,d=void 0===s?"".concat(a,"-enter-active"):s,u=e.enterToClass,p=void 0===u?"".concat(a,"-enter-to"):u,f=e.appearFromClass,v=void 0===f?i:f,b=e.appearActiveClass,y=void 0===b?d:b,m=e.appearToClass,h=void 0===m?p:m,j=e.leaveFromClass,O=void 0===j?"".concat(a,"-leave-from"):j,_=e.leaveActiveClass,x=void 0===_?"".concat(a,"-leave-active"):_,w=e.leaveToClass,S=void 0===w?"".concat(a,"-leave-to"):w,A=function(e){if(null==e)return null;if(Object(g.n)(e))return[T(e.enter),T(e.leave)];var t=T(e);return[t,t]}(l),E=A&&A[0],H=A&&A[1],Y=t.onBeforeEnter,R=t.onEnter,B=t.onEnterCancelled,M=t.onLeave,U=t.onLeaveCancelled,z=t.onBeforeAppear,F=void 0===z?Y:z,W=t.onAppear,G=void 0===W?R:W,K=t.onAppearCancelled,J=void 0===K?B:K,q=function(e,t,o){L(e,t?h:p),L(e,t?y:d),o&&o()},Q=function(e,t){e._isLeaving=!1,L(e,O),L(e,S),L(e,x),t&&t()},X=function(e){return function(t,o){var n=e?G:R,a=function(){return q(t,e,o)};C(n,[t,a]),D((function(){L(t,e?v:i),I(t,e?h:p),P(n)||V(t,r,E,a)}))}};return Object(g.e)(t,{onBeforeEnter(e){C(Y,[e]),I(e,i),I(e,d)},onBeforeAppear(e){C(F,[e]),I(e,v),I(e,y)},onEnter:X(!1),onAppear:X(!0),onLeave(e,t){e._isLeaving=!0;var o=function(){return Q(e,t)};I(e,O),I(e,x),N(),D((function(){e._isLeaving&&(L(e,O),I(e,S),P(M)||V(e,r,H,o))})),C(M,[e,o])},onEnterCancelled(e){q(e,!1),C(B,[e])},onAppearCancelled(e){q(e,!0),C(J,[e])},onLeaveCancelled(e){Q(e),C(U,[e])}})}function T(e){return Object(g.x)(e)}function I(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.add(t)})),(e[S]||(e[S]=new Set)).add(t)}function L(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.remove(t)}));var o=e[S];o&&(o.delete(t),o.size||(e[S]=void 0))}function D(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var H=0;function V(e,t,o,n){var a=e._endId=++H,r=function(){a===e._endId&&n()};if(o)return setTimeout(r,o);var l=Y(e,t),c=l.type,i=l.timeout,s=l.propCount;if(!c)return n();var d=c+"end",u=0,p=function(){e.removeEventListener(d,f),r()},f=function(t){t.target===e&&++u>=s&&p()};setTimeout((function(){u0&&(d="transition",u=l,p=r.length):"animation"===t?s>0&&(d="animation",u=s,p=i.length):p=(d=(u=Math.max(l,s))>0?l>s?"transition":"animation":null)?"transition"===d?r.length:i.length:0,{type:d,timeout:u,propCount:p,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(n("".concat("transition","Property")).toString())}}function R(e,t){for(;e.length5&&void 0!==arguments[5]?arguments[5]:Object(g.r)(t);n&&t.startsWith("xlink:")?null==o?e.removeAttributeNS(X,t.slice(6,t.length)):e.setAttributeNS(X,t,o):null==o||r&&!Object(g.g)(o)?e.removeAttribute(t):e.setAttribute(t,r?"":Object(g.t)(o)?String(o):o)}function $(e,t,o,n){e.addEventListener(t,o,n)}function ee(e,t,o,n){e.removeEventListener(t,o,n)}var te=Symbol("_vei");var oe=/(?:Once|Passive|Capture)$/;function ne(e){var t,o;if(oe.test(e))for(t={};o=e.match(oe);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Object(g.f)(e.slice(2)),t]}var ae=0,re=Promise.resolve();function le(e,t){var o=function(e){if(e._vts){if(e._vts<=o.attached)return}else e._vts=Date.now();Object(n.callWithAsyncErrorHandling)(function(e,t){if(Object(g.i)(t)){var o=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){o.call(e),e._stopped=!0},t.map((function(e){return function(t){return!t._stopped&&e&&e(t)}}))}return t}(e,o.value),t,5,[e])};return o.value=e,o.attached=ae||(re.then((function(){return ae=0})),ae=Date.now()),o}var ce=function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123}; /*! #__NO_SIDE_EFFECTS__ */ "undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");var ie,se=["ctrl","shift","alt","meta"],de={stop:function(e){return e.stopPropagation()},prevent:function(e){return e.preventDefault()},self:function(e){return e.target!==e.currentTarget},ctrl:function(e){return!e.ctrlKey},shift:function(e){return!e.shiftKey},alt:function(e){return!e.altKey},meta:function(e){return!e.metaKey},left:function(e){return"button"in e&&0!==e.button},middle:function(e){return"button"in e&&1!==e.button},right:function(e){return"button"in e&&2!==e.button},exact:function(e,t){return se.some((function(o){return e["".concat(o,"Key")]&&!t.includes(o)}))}},ue=function(e,t){var o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=function(o){for(var n=0;n1?r-1:0),c=1;c4&&void 0!==arguments[4]?arguments[4]:null,r=e[te]||(e[te]={}),l=r[t];if(n&&l)l.value=n;else{var c=ne(t),i=b()(c,2),s=i[0],d=i[1];if(n){var u=r[t]=le(n,a);$(e,s,u,d)}else l&&(ee(e,s,l,d),r[t]=void 0)}}(e,t,o,n,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,o,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&ce(t)&&Object(g.j)(o));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){var a=e.tagName;if("IMG"===a||"VIDEO"===a||"CANVAS"===a||"SOURCE"===a)return!1}if(ce(t)&&Object(g.s)(o))return!1;return t in e} -/*! #__NO_SIDE_EFFECTS__ */(e,t,n,l))?(!function(e,t,o,n){if("innerHTML"!==t&&"textContent"!==t){var a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){var r="OPTION"===a?e.getAttribute("value")||"":e.value,l=null==o?"":String(o);return r===l&&"_value"in e||(e.value=l),null==o&&e.removeAttribute(t),void(e._value=o)}var c=!1;if(""===o||null==o){var i=typeof e[t];"boolean"===i?o=Object(g.g)(o):null==o&&"string"===i?(o="",c=!0):"number"===i&&(o=0,c=!0)}try{e[t]=o}catch(e){0}c&&e.removeAttribute(t)}else{if(null==o)return;e[t]=o}}(e,t,n),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Z(e,t,n,l,r,"value"!==t)):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),Z(e,t,n,l))}},w);function fe(){return ie||(ie=Object(n.createRenderer)(pe))}var ve=function(){var e;(e=fe()).render.apply(e,arguments)}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(a.defineComponent)({name:"App",setup(){var e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(a.ref)(""),n=Object(a.ref)(0),l=Object(a.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:n,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:function(){e.back()},navigateTo:function(t,o){o!==n.value&&(n.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,a,r,l){var c=Object(n.z)("router-view");return Object(n.t)(),Object(n.f)("div",{id:"root"},[Object(n.g)("div",{id:"header"},[Object(n.g)("div",{class:"left-title"},[Object(n.I)(Object(n.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},null,8,["src"]),[[n.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(n.t)(),Object(n.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(n.e)("v-if",!0)]),Object(n.g)("label",{class:"title"},Object(n.D)(e.subTitle),1)]),Object(n.g)("div",{class:"body-container",onClick:Object(n.J)((function(){}),["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(c,null,{default:Object(n.H)((function(e){var t=e.Component,o=e.route;return[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(t),{key:o.path}))],1024))]})),_:1})]),Object(n.g)("div",{class:"bottom-tabs"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tabs,(function(t,o){return Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.J)((function(n){return e.navigateTo(t,o)}),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.D)(t.text),1)],10,["onClick"])})),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return i})),o.d(t,"c",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"f",(function(){return c})),o.d(t,"g",(function(){return v})),o.d(t,"h",(function(){return f})),o.d(t,"i",(function(){return b}));var n=o("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),a=o.n(n),r=o("./node_modules/@babel/runtime/regenerator/index.js"),l=o.n(r),c=function(t){return e.getTurboModule("demoTurbo").getString(t)},i=function(t){return e.getTurboModule("demoTurbo").getNum(t)},s=function(t){return e.getTurboModule("demoTurbo").getBoolean(t)},d=function(t){return e.getTurboModule("demoTurbo").getMap(t)},u=function(t){return e.getTurboModule("demoTurbo").getObject(t)},p=function(t){return e.getTurboModule("demoTurbo").getArray(t)},f=function(){var t=a()(l.a.mark((function t(o){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(o));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){return e.getTurboModule("demoTurbo").getTurboConfig()},b=function(t){return e.getTurboModule("demoTurbo").printTurboConfig(t)}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),n=o.n(t),a=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e){for(var t=1;tr?n:r)*Number(t.replace("rem",""))/844)).toFixed(2))}}return s(s({},e),{},{value:t})}}}),u=Object(l.a)();d.use(u),a.EventBus.$on("onSizeChanged",(function(e){e.width&&e.height&&Object(a.setScreenSize)({width:e.width,height:e.height})}));d.$start().then((function(e){var t=e.superProps,o=e.rootViewId;Object(c.b)({superProps:t,rootViewId:o}),u.push("/"),a.BackAndroid.addListener((function(){return console.log("backAndroid"),!0})),d.mount("#root")}))}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return At}));var n=o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=o.n(n),r=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),l=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var c=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)((function(){console.log("".concat(Date.now(),"-button-activated"))})),Object(c.onDeactivated)((function(){console.log("".concat(Date.now(),"-button-Deactivated"))}));return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:function(){e.value=!e.value},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e)},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e)},onClickViewOnce:function(){o.value=!o.value}}}}),s=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),d=o.n(s);var u=d()(i,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"button-demo"},[Object(l.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(l.g)("button",{class:Object(l.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchBtnStart&&e.onTouchBtnStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchBtnMove&&e.onTouchBtnMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchBtnEnd&&e.onTouchBtnEnd.apply(e,arguments)}),["stop"])),onClick:t[3]||(t[3]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[e.isClicked?(Object(l.t)(),Object(l.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(l.t)(),Object(l.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(l.I)(Object(l.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[l.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),p=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=o.n(p);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t1&&(o.value.numberOfLines-=1)},incrementLine:function(){o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:function(e){o.value.ellipsizeMode=e},changeTextShadow:function(){n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:function(e){a.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var ie=d()(ce,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"p-demo"},[Object(l.g)("div",null,[Object(l.g)("label",null,"不带样式:"),Object(l.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchTextStart&&e.onTouchTextStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchTextMove&&e.onTouchTextMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchTextEnd&&e.onTouchTextEnd.apply(e,arguments)}),["stop"]))}," 这是最普通的一行文字 ",32),Object(l.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(l.D)(e.labelTouchStatus),1),Object(l.g)("label",null,"颜色:"),Object(l.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(l.g)("label",null,"尺寸:"),Object(l.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(l.g)("label",null,"粗体:"),Object(l.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(l.g)("label",null,"下划线:"),Object(l.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(l.g)("label",null,"删除线:"),Object(l.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(l.g)("label",null,"自定义字体:"),Object(l.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(l.g)("label",null,"文字阴影:"),Object(l.g)("p",{class:"p-demo-7 p-demo-content",style:Object(l.p)(e.textShadow),onClick:t[3]||(t[3]=function(){return e.changeTextShadow&&e.changeTextShadow.apply(e,arguments)})}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(l.g)("label",null,"文本字符间距"),Object(l.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(l.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(l.g)("label",null,"字体 style:"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(l.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(l.g)("p",null,"font-style: [not set]")]),Object(l.g)("label",null,"numberOfLines="+Object(l.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(l.D)(e.textMode.ellipsizeMode),1),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(l.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(l.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(l.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(l.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(l.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.incrementLine&&e.incrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"加一行")]),Object(l.g)("button",{class:"button",onClick:t[5]||(t[5]=function(){return e.decrementLine&&e.decrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"减一行")])]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[6]||(t[6]=function(){return e.changeMode("clip")})},[Object(l.g)("span",null,"clip")]),Object(l.g)("button",{class:"button",onClick:t[7]||(t[7]=function(){return e.changeMode("head")})},[Object(l.g)("span",null,"head")]),Object(l.g)("button",{class:"button",onClick:t[8]||(t[8]=function(){return e.changeMode("middle")})},[Object(l.g)("span",null,"middle")]),Object(l.g)("button",{class:"button",onClick:t[9]||(t[9]=function(){return e.changeMode("tail")})},[Object(l.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"p-demo-content"},[Object(l.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(l.D)(e.longText),9,["break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(l.J)((function(){return e.changeBreakStrategy("simple")}),["stop"]))},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(l.J)((function(){return e.changeBreakStrategy("high_quality")}),["stop"]))},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(l.J)((function(){return e.changeBreakStrategy("balanced")}),["stop"]))},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0),Object(l.g)("label",null,"vertical-align"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字")])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"tint-color & background-color"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"margin"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var se=Object(c.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var de=d()(se,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"offset-shadow-demo-content-android"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ue=Object(c.defineComponent)({setup(){var e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var pe=d()(ue,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"demo-textarea"},[Object(l.g)("label",null,"多行文本:"),Object(l.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=function(t){return e.content=t.value}),"on:contentSizeChange":t[1]||(t[1]=function(){return e.contentSizeChange&&e.contentSizeChange.apply(e,arguments)})},null,40,["value"]),Object(l.g)("div",{class:"output-container"},[Object(l.g)("p",{class:"output"}," 输入的文本为:"+Object(l.D)(e.content),1)]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1},[Object(l.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[2]||(t[2]=function(){return e.changeBreakStrategy("simple")})},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[3]||(t[3]=function(){return e.changeBreakStrategy("high_quality")})},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.changeBreakStrategy("balanced")})},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var fe=o("./src/components/demo/demoTurbo.ts"),ve=Object(c.defineComponent)({setup(){var e=null,t=Object(c.ref)(""),o=function(){var o=I()(D.a.mark((function o(n){var a,r,l,c;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("nativeWithPromise"!==n){o.next=6;break}return o.next=3,Object(fe.h)("aaa");case 3:t.value=o.sent,o.next=7;break;case 6:"getTurboConfig"===n?(e=Object(fe.g)(),t.value="获取到config对象"):"printTurboConfig"===n?t.value=Object(fe.i)(null!==(a=e)&&void 0!==a?a:Object(fe.g)()):"getInfo"===n?t.value=(null!==(r=e)&&void 0!==r?r:Object(fe.g)()).getInfo():"setInfo"===n?((null!==(l=e)&&void 0!==l?l:Object(fe.g)()).setInfo("Hello World"),t.value="设置config信息成功"):(c={getString:function(){return Object(fe.f)("123")},getNum:function(){return Object(fe.d)(1024)},getBoolean:function(){return Object(fe.b)(!0)},getMap:function(){return Object(fe.c)(new Map([["a","1"],["b","2"]]))},getObject:function(){return Object(fe.e)({c:"3",d:"4"})},getArray:function(){return Object(fe.a)(["a","b","c"])}},t.value=c[n]());case 7:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:o}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var be=d()(ve,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"demo-turbo"},[Object(l.g)("span",{class:"result"},Object(l.D)(e.result),1),Object(l.g)("ul",{style:{flex:"1"}},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.funList,(function(t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"cell"},[Object(l.g)("div",{class:"contentView"},[Object(l.g)("div",{class:"func-info"},[Object(l.g)("span",{numberOfLines:0},"函数名:"+Object(l.D)(t),1)]),Object(l.g)("span",{class:"action-button",onClick:Object(l.J)((function(){return e.onTurboFunc(t)}),["stop"])},"运行",8,["onClick"])])])})),128))])])}]]);var ye=null,me=Object(c.ref)([]),ge=function(e){me.value.unshift(e)},he=function(){ye&&1===ye.readyState&&ye.close()},je=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:me,inputUrl:e,inputMessage:t,connect:function(){var t=e.value;t&&t.getValue().then((function(e){!function(e){he(),(ye=new WebSocket(e)).onopen=function(){var e;return ge("[Opened] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onclose=function(){var e;return ge("[Closed] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onerror=function(e){ge("[Error] ".concat(e.reason))},ye.onmessage=function(e){return ge("[Received] ".concat(e.data))}}(e)}))},disconnect:function(){he()},sendMessage:function(){var e=t.value;e&&e.getValue().then((function(e){!function(e){ge("[Sent] ".concat(e)),ye&&ye.send(e)}(e)}))}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var Oe={demoDiv:{name:"div 组件",component:E},demoShadow:{name:"box-shadow",component:de},demoP:{name:"p 组件",component:ie},demoButton:{name:"button 组件",component:u},demoImg:{name:"img 组件",component:U},demoInput:{name:"input 组件",component:J},demoTextarea:{name:"textarea 组件",component:pe},demoUl:{name:"ul/li 组件",component:le},demoIFrame:{name:"iframe 组件",component:R},demoWebSocket:{name:"WebSocket",component:d()(je,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"websocket-demo"},[Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Url: "),Object(l.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(l.g)("div",{class:"row"},[Object(l.g)("button",{onClick:t[0]||(t[0]=Object(l.J)((function(){return e.connect&&e.connect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Connect")]),Object(l.g)("button",{onClick:t[1]||(t[1]=Object(l.J)((function(){return e.disconnect&&e.disconnect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Disconnect")])])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Message: "),Object(l.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(l.g)("button",{onClick:t[2]||(t[2]=Object(l.J)((function(){return e.sendMessage&&e.sendMessage.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Send")])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Log: "),Object(l.g)("div",{class:"output fullscreen"},[Object(l.g)("div",null,[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.output,(function(e,t){return Object(l.t)(),Object(l.f)("p",{key:t},Object(l.D)(e),1)})),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:V},demoTurbo:{name:"Turbo",component:be}};var _e=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)((function(){o.value=y.Native.Dimensions.screen.width}));return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:function(t){var n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:function(e){t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:function(t){var n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:function(e){t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var xe=d()(_e,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"set-native-props-demo"},[Object(l.g)("label",null,"setNativeProps实现拖动效果"),Object(l.g)("div",{class:"native-demo-1-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchDown1&&e.onTouchDown1.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchMove1&&e.onTouchMove1.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(l.g)("div",{class:"splitter"}),Object(l.g)("label",null,"普通渲染实现拖动效果"),Object(l.g)("div",{class:"native-demo-2-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchDown2&&e.onTouchDown2.apply(e,arguments)}),["stop"])),onTouchmove:t[3]||(t[3]=Object(l.J)((function(){return e.onTouchMove2&&e.onTouchMove2.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"native-demo-2-point",style:Object(l.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);var we={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Se=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup:()=>({colorActions:we})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var Ae=d()(Se,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"color-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);var ke={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}},Ce=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup(e){var t=Object(c.ref)(null);return Object(c.onMounted)((function(){e.onRef&&e.onRef(t.value)})),{animationView:t,loopActions:ke}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var Pe=d()(Ce,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);var Ee={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Te={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Ie=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:function(){}}},emits:["actionsDidUpdate"],setup(e){var t=Object(c.toRefs)(e).direction,o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,(function(e){switch(e){case"horizon":o.value=Ee;break;case"vertical":o.value=Te;break;default:throw new Error("direction must be defined in props")}}),{immediate:!0}),Object(c.onMounted)((function(){e.onRef&&e.onRef(n.value)})),{loopActions:o,animationLoop:n}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Le=d()(Ie,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=function(t){return e.$emit("actionsDidUpdate")})},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);var De={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},He={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},Ve=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){var t=Object(c.ref)(null),o=Object(c.ref)({face:De,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),n=Object(c.toRefs)(e).isChanged;return Object(c.watch)(n,(function(e,n){!n&&e?(console.log("changed to face2"),o.value.face=He):n&&!e&&(console.log("changed to face1"),o.value.face=De),setTimeout((function(){t.value&&t.value.start()}),10)})),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ye=d()(Ve,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(l.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Re=Object(c.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Be=d()(Re,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ne=Object(c.defineComponent)({components:{Loop:Le,colorComponent:Ae,CubicBezier:Pe},setup(){var e=Object(c.ref)(!0),t=Object(c.ref)(!0),o=Object(c.ref)(!0),n=Object(c.ref)("horizon"),a=Object(c.ref)(!0),r=Object(c.ref)(null),l=Object(c.shallowRef)(Be);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:l,colorComponent:Ae,isChanged:a,animationRef:r,voteUp:function(){l.value=Be},voteDown:function(){l.value=Ye,a.value=!a.value},onRef:function(e){r.value=e},toggleLoopPlaying:function(){e.value=!e.value},toggleColorPlaying:function(){t.value=!t.value},toggleCubicPlaying:function(){o.value=!o.value},toggleDirection:function(){n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:function(){Object(c.nextTick)().then((function(){console.log("actions updated & startAnimation"),r.value&&r.value.start()}))}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Me=d()(Ne,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("loop"),i=Object(l.z)("color-component"),s=Object(l.z)("cubic-bezier");return Object(l.t)(),Object(l.f)("ul",{id:"animation-demo"},[Object(l.g)("li",null,[Object(l.g)("label",null,"控制动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.toggleLoopPlaying&&e.toggleLoopPlaying.apply(e,arguments)})},[e.loopPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.toggleDirection&&e.toggleDirection.apply(e,arguments)})},["horizon"===e.direction?(Object(l.t)(),Object(l.f)("span",{key:0},"切换为纵向")):(Object(l.t)(),Object(l.f)("span",{key:1},"切换为横向"))])]),Object(l.g)("div",{style:{height:"150px"}},[Object(l.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm a looping animation")]})),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"点赞笑脸动画:"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=function(){return e.voteUp&&e.voteUp.apply(e,arguments)})},[Object(l.g)("span",null,"点赞 👍")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=function(){return e.voteDown&&e.voteDown.apply(e,arguments)})},[Object(l.g)("span",null,"踩 👎")])]),Object(l.g)("div",{class:"vote-face-container center"},[(Object(l.t)(),Object(l.d)(Object(l.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"渐变色动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=function(){return e.toggleColorPlaying&&e.toggleColorPlaying.apply(e,arguments)})},[e.colorPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(i,{playing:e.colorPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"背景色渐变")]})),_:1},8,["playing"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"贝塞尔曲线动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=function(){return e.toggleCubicPlaying&&e.toggleCubicPlaying.apply(e,arguments)})},[e.cubicPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(s,{playing:e.cubicPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]})),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ue=o("./node_modules/vue-router/dist/vue-router.mjs"),ze=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],Fe=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)("fade"),n=Object(c.ref)(!1),a=Object(c.ref)(!1),r=Object(c.ref)(!1);return Object(Ue.onBeforeRouteLeave)((function(t,o,n){e.value||n()})),{supportedOrientations:ze,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,autoHideNavigationBar:r,stopPropagation:function(e){e.stopPropagation()},onClose:function(o){o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:function(){console.log("Dialog is opening")},onClickView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.value=!e.value,o.value=t},onClickOpenSecond:function(e){e.stopPropagation(),t.value=!t.value},onClickDialogConfig:function(e){switch(e){case"hideStatusBar":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":r.value=!r.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var We=d()(Fe,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"dialog-demo"},[Object(l.g)("label",null,"显示或者隐藏对话框:"),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(l.J)((function(){return e.onClickView("slide")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.onClickView("fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.onClickView("slide_fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(l.J)((function(){return e.onClickDialogConfig("hideStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(l.J)((function(){return e.onClickDialogConfig("immerseStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(l.J)((function(){return e.onClickDialogConfig("hideNavigationBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(l.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=function(){return e.onShow&&e.onShow.apply(e,arguments)}),"on:requestClose":t[13]||(t[13]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[14]||(t[14]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.e)(" dialog on iOS platform can only have one child node "),Object(l.g)("div",{class:"dialog-demo-wrapper"},[Object(l.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=function(){return e.stopPropagation&&e.stopPropagation.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(l.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[10]||(t[10]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(l.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ge,Ke=o("./src/util.ts"),Je=Object(c.defineComponent)({setup(){var e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),r=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),d=Object(c.ref)("ready to set"),u=Object(c.ref)(""),p=Object(c.ref)(0),f=function(){var e=I()(D.a.mark((function e(){var o;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.AsyncStorage.getItem("itemKey");case 2:o=e.sent,t.value=o||"undefined";case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=I()(D.a.mark((function e(){var t;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:t=e.sent,console.log("ImageLoader getSize",t),o.value="".concat(t.width,"x").concat(t.height);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=I()(D.a.mark((function e(){var t,o,n=arguments;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,y.Native.getBoundingClientRect(i.value,{relToContainer:t});case 4:o=e.sent,t?r.value="".concat(JSON.stringify(o)):a.value="".concat(JSON.stringify(o)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoundingClientRect error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){l.value=JSON.stringify(Object(Ke.a)()),y.Native.NetInfo.fetch().then((function(e){n.value=e})),Ge=y.Native.NetInfo.addEventListener("change",(function(e){n.value="收到通知: ".concat(e.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(e){s.value="成功状态: ".concat(e.status)})).catch((function(e){s.value="收到错误: ".concat(e)})),y.EventBus.$on("testEvent",(function(){p.value+=1}))})),{Native:y.Native,rect1:a,rect2:r,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:l,fetchText:s,cookieString:d,cookiesValue:u,getSize:v,setItem:function(){y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:f,removeItem:function(){y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:function(){y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:function(){y.Native.Cookie.getAll("https://hippyjs.org").then((function(e){u.value=e}))},getBoundingClientRect:b,triggerAppEvent:function(){y.EventBus.$emit("testEvent")},eventTriggeredTimes:p}},beforeDestroy(){Ge&&y.Native.NetInfo.removeEventListener("change",Ge),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var qe=d()(Je,[["render",function(e,t,o,n,a,r){var c,i;return Object(l.t)(),Object(l.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(l.g)("div",null,[Object(l.e)(" platform "),e.Native.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(l.g)("p",null,Object(l.D)(e.Native.Platform),1)])):Object(l.e)("v-if",!0),Object(l.e)(" device name "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Device"),Object(l.g)("p",null,Object(l.D)(e.Native.Device),1)]),Object(l.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:1,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(l.g)("p",null,Object(l.D)(e.Native.isIPhoneX),1)])):Object(l.e)("v-if",!0),Object(l.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:2,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(l.g)("p",null,Object(l.D)(e.Native.OSVersion||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Internationalization related information "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(l.g)("p",null,Object(l.D)("国际化相关信息")),Object(l.g)("p",null,Object(l.D)("国家 ".concat(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(l.g)("p",null,Object(l.D)("语言 ".concat(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(l.g)("p",null,Object(l.D)("方向 ".concat(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(l.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:3,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(l.g)("p",null,Object(l.D)(e.Native.APILevel||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Whether the screen is vertically displayed "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(l.g)("p",null,Object(l.D)(e.Native.screenIsVertical),1)]),Object(l.e)(" width of window "),e.Native.Dimensions.window.width?(Object(l.t)(),Object(l.f)("div",{key:4,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(l.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(l.t)(),Object(l.f)("div",{key:5,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(l.t)(),Object(l.f)("div",{key:6,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(l.t)(),Object(l.f)("div",{key:7,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" the pt value of a pixel "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(l.g)("p",null,Object(l.D)(e.Native.OnePixel),1)]),Object(l.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:8,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(l.t)(),Object(l.f)("div",{key:9,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:10,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The startup parameters passed from the native "),e.superProps?(Object(l.t)(),Object(l.f)("div",{key:11,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(l.g)("p",null,Object(l.D)(e.superProps),1)])):Object(l.e)("v-if",!0),Object(l.e)(" A demo of Native Event,Just show how to use "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"App event"),Object(l.g)("div",null,[Object(l.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=function(){return e.triggerAppEvent&&e.triggerAppEvent.apply(e,arguments)})},[Object(l.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(l.g)("div",{class:"event-btn-result"},[Object(l.g)("p",null,"Event triggered times: "+Object(l.D)(e.eventTriggeredTimes),1)])])]),Object(l.e)(" example of measuring the size of an element "),Object(l.g)("div",{ref:"measure-block",class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[1]||(t[1]=function(){return e.getBoundingClientRect(!1)})},[Object(l.g)("span",null,"relative to App")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect1),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[2]||(t[2]=function(){return e.getBoundingClientRect(!0)})},[Object(l.g)("span",null,"relative to Container")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect2),1)])],512),Object(l.e)(" local storage "),e.Native.AsyncStorage?(Object(l.t)(),Object(l.f)("div",{key:12,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[3]||(t[3]=function(){return e.setItem&&e.setItem.apply(e,arguments)})},[Object(l.g)("span",null,"setItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[4]||(t[4]=function(){return e.removeItem&&e.removeItem.apply(e,arguments)})},[Object(l.g)("span",null,"removeItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[5]||(t[5]=function(){return e.getItem&&e.getItem.apply(e,arguments)})},[Object(l.g)("span",null,"getItem")]),Object(l.g)("span",null,Object(l.D)(e.storageValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" ImageLoader "),e.Native.ImageLoader?(Object(l.t)(),Object(l.f)("div",{key:13,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[6]||(t[6]=function(){return e.getSize&&e.getSize.apply(e,arguments)})},[Object(l.g)("span",null,"getSize")]),Object(l.g)("span",null,Object(l.D)(e.imageSize),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Fetch "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.fetchText),1)])]),Object(l.e)(" network info "),e.Native.NetInfo?(Object(l.t)(),Object(l.f)("div",{key:14,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.netInfoText),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Cookie "),e.Native.Cookie?(Object(l.t)(),Object(l.f)("div",{key:15,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[7]||(t[7]=function(){return e.setCookie&&e.setCookie.apply(e,arguments)})},[Object(l.g)("span",null,"setCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookieString),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[8]||(t[8]=function(){return e.getCookie&&e.getCookie.apply(e,arguments)})},[Object(l.g)("span",null,"getCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookiesValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" iOS platform "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:16,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(l.g)("p",null,Object(l.D)(e.Native.isIOS()),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Android platform "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:17,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(l.g)("p",null,Object(l.D)(e.Native.isAndroid()),1)])):Object(l.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);var Qe="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Xe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Qe,Qe,Qe],subInfo:["三图评论","11评"]}},Ze={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},$e={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},et=[$e,Xe,Ze,Xe,Ze,Xe,Ze,$e,Xe];var tt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var ot=d()(tt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-one"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-one-image-container"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.itemBean.picList,(function(e,t){return Object(l.t)(),Object(l.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"])})),128))]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])])}]]);var nt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var at=d()(nt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-two"},[Object(l.g)("div",{class:"style-two-left-container"},[Object(l.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])]),Object(l.g)("div",{class:"style-two-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var rt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var lt=d()(rt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-five"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-five-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join(" ")),1)])])}]]),ct=0,it=Object(c.ref)({top:0,left:0}),st=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e(et)}),800)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)(a()(et)),r=!1,l=!1,i=Object(c.ref)(""),s=Object(c.ref)("继续下拉触发刷新"),d=Object(c.ref)("正在加载..."),u=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=2;break}return e.abrupt("return");case 2:return l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",e.next=7,st();case 7:n.value=e.sent,n.value=n.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3});case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=I()(D.a.mark((function e(t){var l;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("endReached",t),!r){e.next=3;break}return e.abrupt("return");case 3:return r=!0,d.value="加载更多...",e.next=7,st();case 7:0===(l=e.sent).length&&(d.value="没有更多数据"),n.value=[].concat(a()(n.value),a()(l)),r=!1,o.value&&o.value.collapsePullFooter();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){r=!1,l=!1,n.value=a()(et),ct=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})})),{loadingState:i,dataSource:n,headerRefreshText:s,footerRefreshText:d,list:e,pullHeader:t,pullFooter:o,onEndReached:p,onHeaderReleased:u,onHeaderIdle:function(){},onHeaderPulling:function(e){l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:function(){},onFooterPulling:function(e){console.log("onFooterPulling",e)},onScroll:function(e){e.stopPropagation(),it.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:function(){if(y.Native){if(e.value){var t=e.value;console.log("scroll to next page",e,it.value,ct);var o=it.value.top+ct-200;t.scrollTo({left:it.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(y.Native){if(e.value){var t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var ut=d()(dt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("style-one"),s=Object(l.z)("style-two"),d=Object(l.z)("style-five"),u=Object(l.z)("pull-footer");return Object(l.t)(),Object(l.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToBottom&&e.scrollToBottom.apply(e,arguments)})},[Object(l.g)("span",null,"翻动到底部")]),Object(l.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(l.D)(e.dataSource.length),1)]),Object(l.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[Object(l.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e,t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(l.t)(),Object(l.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===e.style?(Object(l.t)(),Object(l.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===e.style?(Object(l.t)(),Object(l.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)],8,["type","sticky"])})),128)),Object(l.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var pt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.ref)(2);return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:function(){console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:function(){console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:function(e){console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:function(e){console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:function(t){console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var ft=d()(pt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-swiper"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToPrevPage&&e.scrollToPrevPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到上一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("p",{class:"toolbar-text"}," 当前第 "+Object(l.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(l.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(l.H)((function(){return[Object(l.e)(" slides "),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e){return Object(l.t)(),Object(l.d)(c,{key:e,style:Object(l.p)({backgroundColor:4278222848+100*e})},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm Slide "+Object(l.D)(e+1),1)]})),_:2},1032,["style"])})),128))]})),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(l.e)(" A Demo of dots "),Object(l.g)("div",{id:"swiper-dots"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t){return Object(l.t)(),Object(l.f)("div",{key:t,class:Object(l.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2)})),128))])])}]]);var vt=0,bt={top:0,left:5,bottom:0,right:5},yt="ios"===y.Native.Platform,mt=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e((vt+=1)>=50?[]:[].concat(a()(et),a()(et)))}),600)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)([].concat(a()(et),a()(et),a()(et),a()(et))),t=!1,o=!1,n=Object(c.ref)(!1),r=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null),s="继续下拉触发刷新",d="正在加载...",u=Object(c.computed)((function(){return n.value?"正在刷新":"下拉刷新"})),p=Object(c.ref)(null),f=Object(c.ref)(null),v=Object(c.computed)((function(){return(y.Native.Dimensions.screen.width-bt.left-bt.right-6)/2})),b=function(){var t=I()(D.a.mark((function t(){var o;return D.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.value=!0,t.next=3,mt();case 3:o=t.sent,n.value=!1,e.value=o.reverse(),f.value&&f.value.refreshCompleted();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var o=I()(D.a.mark((function o(){var n;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(console.log("end Reached"),!t){o.next=3;break}return o.abrupt("return");case 3:return t=!0,d="加载更多...",o.next=7,mt();case 7:0===(n=o.sent).length&&(d="没有更多数据"),e.value=[].concat(a()(e.value),a()(n)),t=!1,i.value&&i.value.collapsePullFooter();case 12:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:r,header:f,gridView:p,contentInset:bt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:v,onScroll:function(e){console.log("waterfall onScroll",e)},onRefresh:b,onEndReached:g,onClickItem:function(e){p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:yt,onHeaderPulling:function(e){o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:m,headerRefreshText:s,footerRefreshText:d,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ht=d()(gt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("waterfall-item"),s=Object(l.z)("style-one"),d=Object(l.z)("style-two"),u=Object(l.z)("style-five"),p=Object(l.z)("pull-footer"),f=Object(l.z)("waterfall");return Object(l.t)(),Object(l.f)("div",{id:"demo-waterfall"},[Object(l.i)(f,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(l.H)((function(){return[Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(l.t)(),Object(l.f)("div",{key:0,class:"banner-view"},[Object(l.g)("span",null,"BannerView")])):(Object(l.t)(),Object(l.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(l.H)((function(){return[Object(l.g)("span",null,"BannerView")]})),_:1})),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t,o){return Object(l.t)(),Object(l.d)(i,{key:o,style:Object(l.p)({width:e.itemWidth}),type:t.style,onClick:Object(l.J)((function(){return e.onClickItem(o)}),["stop"])},{default:Object(l.H)((function(){return[1===t.style?(Object(l.t)(),Object(l.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===t.style?(Object(l.t)(),Object(l.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===t.style?(Object(l.t)(),Object(l.d)(u,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)]})),_:2},1032,["style","type","onClick"])})),128)),Object(l.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])]})),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var jt=Object(c.defineComponent)({setup(){var e=Object(c.ref)(0),t=Object(c.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:function(t){e.value=t.height},onTabClick:function(e){t.value=e-1},onDropped:function(e){t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var Ot={demoNative:{name:"Native 能力",component:qe},demoAnimation:{name:"animation 组件",component:Me},demoDialog:{name:"dialog 组件",component:We},demoSwiper:{name:"swiper 组件",component:ft},demoPullHeaderFooter:{name:"pull header/footer 组件",component:ut},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:d()(jt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=function(){return e.onLayout&&e.onLayout.apply(e,arguments)})},[Object(l.g)("div",{id:"demo-content"},[Object(l.g)("div",{id:"banner"}),Object(l.g)("div",{id:"tabs"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(2,(function(t){return Object(l.g)("p",{key:"tab"+t,class:Object(l.o)(e.currentSlide===t-1?"selected":""),onClick:function(o){return e.onTabClick(t)}}," tab "+Object(l.D)(t)+" "+Object(l.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])})),64))]),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(l.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(l.H)((function(){return[Object(l.i)(c,{key:"slide1"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1}),Object(l.i)(c,{key:"slide2"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"self"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1})]})),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:xe}};var _t=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(Oe).map((function(e){return{id:e,name:Oe[e].name}})),t=Object.keys(Ot).map((function(e){return{id:e,name:Ot[e].name}}));return Object(c.onMounted)((function(){})),{featureList:e,nativeFeatureList:t,version:c.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var xt=d()(_t,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("router-link");return Object(l.t)(),Object(l.f)("ul",{class:"feature-list"},[Object(l.g)("li",null,[Object(l.g)("div",{id:"version-info"},[Object(l.g)("p",{class:"feature-title"}," Vue: "+Object(l.D)(e.version),1),e.Native?(Object(l.t)(),Object(l.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(l.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(l.e)("v-if",!0)])]),Object(l.g)("li",null,[Object(l.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.featureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128)),e.nativeFeatureList.length?(Object(l.t)(),Object(l.f)("li",{key:0},[Object(l.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(l.e)("v-if",!0),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.nativeFeatureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128))])}],["__scopeId","data-v-63300fa4"]]);var wt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(c.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:function(){t.value&&t.value.blur()},openBundle:function(){if(e.value){var t=Object(Ke.a)().rootViewId;y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");var St=[{path:"/",component:xt},{path:"/remote-debug",component:d()(wt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.blurInput&&e.blurInput.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"tips-wrap"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.tips,(function(t,o){return Object(l.t)(),Object(l.f)("p",{key:o,class:"tips-item",style:Object(l.p)(e.styles.tipText)},Object(l.D)(o+1)+". "+Object(l.D)(t),5)})),128))]),Object(l.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(l.J)((function(){}),["stop"]),onChange:t[0]||(t[0]=function(t){return e.bundleUrl=t.value})},null,40,["value"]),Object(l.g)("div",{class:"buttonContainer",style:Object(l.p)(e.styles.buttonContainer)},[Object(l.g)("button",{style:Object(l.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.openBundle&&e.openBundle.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",{style:Object(l.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"}].concat(a()(Object.keys(Oe).map((function(e){return{path:"/demo/".concat(e),name:Oe[e].name,component:Oe[e].component}}))),a()(Object.keys(Ot).map((function(e){return{path:"/demo/".concat(e),name:Ot[e].name,component:Ot[e].component}}))));function At(){return Object(r.createHippyRouter)({routes:St})}},"./src/util.ts":function(e,t,o){"use strict";var n;function a(e){n=e}function r(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){o("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +/*! #__NO_SIDE_EFFECTS__ */(e,t,n,l))?(!function(e,t,o,n){if("innerHTML"!==t&&"textContent"!==t){var a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){var r="OPTION"===a?e.getAttribute("value")||"":e.value,l=null==o?"":String(o);return r===l&&"_value"in e||(e.value=l),null==o&&e.removeAttribute(t),void(e._value=o)}var c=!1;if(""===o||null==o){var i=typeof e[t];"boolean"===i?o=Object(g.g)(o):null==o&&"string"===i?(o="",c=!0):"number"===i&&(o=0,c=!0)}try{e[t]=o}catch(e){0}c&&e.removeAttribute(t)}else{if(null==o)return;e[t]=o}}(e,t,n),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Z(e,t,n,l,r,"value"!==t)):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),Z(e,t,n,l))}},w);function fe(){return ie||(ie=Object(n.createRenderer)(pe))}var ve=function(){var e;(e=fe()).render.apply(e,arguments)}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(a.defineComponent)({name:"App",setup(){var e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(a.ref)(""),n=Object(a.ref)(0),l=Object(a.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:n,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:function(){e.back()},navigateTo:function(t,o){o!==n.value&&(n.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,a,r,l){var c=Object(n.z)("router-view");return Object(n.t)(),Object(n.f)("div",{id:"root"},[Object(n.g)("div",{id:"header"},[Object(n.g)("div",{class:"left-title"},[Object(n.I)(Object(n.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},null,8,["src"]),[[n.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(n.t)(),Object(n.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(n.e)("v-if",!0)]),Object(n.g)("label",{class:"title"},Object(n.D)(e.subTitle),1)]),Object(n.g)("div",{class:"body-container",onClick:Object(n.J)((function(){}),["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(c,null,{default:Object(n.H)((function(e){var t=e.Component,o=e.route;return[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(t),{key:o.path}))],1024))]})),_:1})]),Object(n.g)("div",{class:"bottom-tabs"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tabs,(function(t,o){return Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.J)((function(n){return e.navigateTo(t,o)}),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.D)(t.text),1)],10,["onClick"])})),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return i})),o.d(t,"c",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"f",(function(){return c})),o.d(t,"g",(function(){return v})),o.d(t,"h",(function(){return f})),o.d(t,"i",(function(){return b}));var n=o("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),a=o.n(n),r=o("./node_modules/@babel/runtime/regenerator/index.js"),l=o.n(r),c=function(t){return e.getTurboModule("demoTurbo").getString(t)},i=function(t){return e.getTurboModule("demoTurbo").getNum(t)},s=function(t){return e.getTurboModule("demoTurbo").getBoolean(t)},d=function(t){return e.getTurboModule("demoTurbo").getMap(t)},u=function(t){return e.getTurboModule("demoTurbo").getObject(t)},p=function(t){return e.getTurboModule("demoTurbo").getArray(t)},f=function(){var t=a()(l.a.mark((function t(o){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(o));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){return e.getTurboModule("demoTurbo").getTurboConfig()},b=function(t){return e.getTurboModule("demoTurbo").printTurboConfig(t)}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),n=o.n(t),a=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e){for(var t=1;tr?n:r)*Number(t.replace("rem",""))/844)).toFixed(2))}}return s(s({},e),{},{value:t})}}}),u=Object(l.a)();d.use(u),a.EventBus.$on("onSizeChanged",(function(e){e.width&&e.height&&Object(a.setScreenSize)({width:e.width,height:e.height})}));d.$start().then((function(e){var t=e.superProps,o=e.rootViewId;Object(c.b)({superProps:t,rootViewId:o}),u.push("/"),a.BackAndroid.addListener((function(){return console.log("backAndroid"),!0})),d.mount("#root")}))}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return At}));var n=o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=o.n(n),r=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),l=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var c=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)((function(){console.log("".concat(Date.now(),"-button-activated"))})),Object(c.onDeactivated)((function(){console.log("".concat(Date.now(),"-button-Deactivated"))}));return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:function(){e.value=!e.value},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e)},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e)},onClickViewOnce:function(){o.value=!o.value}}}}),s=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),d=o.n(s);var u=d()(i,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"button-demo"},[Object(l.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(l.g)("button",{class:Object(l.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchBtnStart&&e.onTouchBtnStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchBtnMove&&e.onTouchBtnMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchBtnEnd&&e.onTouchBtnEnd.apply(e,arguments)}),["stop"])),onClick:t[3]||(t[3]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[e.isClicked?(Object(l.t)(),Object(l.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(l.t)(),Object(l.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(l.I)(Object(l.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[l.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),p=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=o.n(p);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t1&&(o.value.numberOfLines-=1)},incrementLine:function(){o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:function(e){o.value.ellipsizeMode=e},changeTextShadow:function(){n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:function(e){a.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var ie=d()(ce,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"p-demo"},[Object(l.g)("div",null,[Object(l.g)("label",null,"不带样式:"),Object(l.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchTextStart&&e.onTouchTextStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchTextMove&&e.onTouchTextMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchTextEnd&&e.onTouchTextEnd.apply(e,arguments)}),["stop"]))}," 这是最普通的一行文字 ",32),Object(l.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(l.D)(e.labelTouchStatus),1),Object(l.g)("label",null,"颜色:"),Object(l.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(l.g)("label",null,"尺寸:"),Object(l.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(l.g)("label",null,"粗体:"),Object(l.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(l.g)("label",null,"下划线:"),Object(l.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(l.g)("label",null,"删除线:"),Object(l.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(l.g)("label",null,"自定义字体:"),Object(l.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(l.g)("label",null,"文字阴影:"),Object(l.g)("p",{class:"p-demo-7 p-demo-content",style:Object(l.p)(e.textShadow),onClick:t[3]||(t[3]=function(){return e.changeTextShadow&&e.changeTextShadow.apply(e,arguments)})}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(l.g)("label",null,"文本字符间距"),Object(l.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(l.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(l.g)("label",null,"字体 style:"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(l.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(l.g)("p",null,"font-style: [not set]")]),Object(l.g)("label",null,"numberOfLines="+Object(l.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(l.D)(e.textMode.ellipsizeMode),1),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(l.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(l.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(l.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(l.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(l.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.incrementLine&&e.incrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"加一行")]),Object(l.g)("button",{class:"button",onClick:t[5]||(t[5]=function(){return e.decrementLine&&e.decrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"减一行")])]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[6]||(t[6]=function(){return e.changeMode("clip")})},[Object(l.g)("span",null,"clip")]),Object(l.g)("button",{class:"button",onClick:t[7]||(t[7]=function(){return e.changeMode("head")})},[Object(l.g)("span",null,"head")]),Object(l.g)("button",{class:"button",onClick:t[8]||(t[8]=function(){return e.changeMode("middle")})},[Object(l.g)("span",null,"middle")]),Object(l.g)("button",{class:"button",onClick:t[9]||(t[9]=function(){return e.changeMode("tail")})},[Object(l.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"p-demo-content"},[Object(l.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(l.D)(e.longText),9,["break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(l.J)((function(){return e.changeBreakStrategy("simple")}),["stop"]))},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(l.J)((function(){return e.changeBreakStrategy("high_quality")}),["stop"]))},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(l.J)((function(){return e.changeBreakStrategy("balanced")}),["stop"]))},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0),Object(l.g)("label",null,"vertical-align"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字")])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"tint-color & background-color"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"margin"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var se=Object(c.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var de=d()(se,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"offset-shadow-demo-content-android"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ue=Object(c.defineComponent)({setup(){var e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var pe=d()(ue,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"demo-textarea"},[Object(l.g)("label",null,"多行文本:"),Object(l.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=function(t){return e.content=t.value}),"on:contentSizeChange":t[1]||(t[1]=function(){return e.contentSizeChange&&e.contentSizeChange.apply(e,arguments)})},null,40,["value"]),Object(l.g)("div",{class:"output-container"},[Object(l.g)("p",{class:"output"}," 输入的文本为:"+Object(l.D)(e.content),1)]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1},[Object(l.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[2]||(t[2]=function(){return e.changeBreakStrategy("simple")})},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[3]||(t[3]=function(){return e.changeBreakStrategy("high_quality")})},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.changeBreakStrategy("balanced")})},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var fe=o("./src/components/demo/demoTurbo.ts"),ve=Object(c.defineComponent)({setup(){var e=null,t=Object(c.ref)(""),o=function(){var o=I()(D.a.mark((function o(n){var a,r,l,c;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("nativeWithPromise"!==n){o.next=6;break}return o.next=3,Object(fe.h)("aaa");case 3:t.value=o.sent,o.next=7;break;case 6:"getTurboConfig"===n?(e=Object(fe.g)(),t.value="获取到config对象"):"printTurboConfig"===n?t.value=Object(fe.i)(null!==(a=e)&&void 0!==a?a:Object(fe.g)()):"getInfo"===n?t.value=(null!==(r=e)&&void 0!==r?r:Object(fe.g)()).getInfo():"setInfo"===n?((null!==(l=e)&&void 0!==l?l:Object(fe.g)()).setInfo("Hello World"),t.value="设置config信息成功"):(c={getString:function(){return Object(fe.f)("123")},getNum:function(){return Object(fe.d)(1024)},getBoolean:function(){return Object(fe.b)(!0)},getMap:function(){return Object(fe.c)(new Map([["a","1"],["b","2"]]))},getObject:function(){return Object(fe.e)({c:"3",d:"4"})},getArray:function(){return Object(fe.a)(["a","b","c"])}},t.value=c[n]());case 7:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:o}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var be=d()(ve,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"demo-turbo"},[Object(l.g)("span",{class:"result"},Object(l.D)(e.result),1),Object(l.g)("ul",{style:{flex:"1"}},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.funList,(function(t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"cell"},[Object(l.g)("div",{class:"contentView"},[Object(l.g)("div",{class:"func-info"},[Object(l.g)("span",{numberOfLines:0},"函数名:"+Object(l.D)(t),1)]),Object(l.g)("span",{class:"action-button",onClick:Object(l.J)((function(){return e.onTurboFunc(t)}),["stop"])},"运行",8,["onClick"])])])})),128))])])}]]);var ye=null,me=Object(c.ref)([]),ge=function(e){me.value.unshift(e)},he=function(){ye&&1===ye.readyState&&ye.close()},je=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:me,inputUrl:e,inputMessage:t,connect:function(){var t=e.value;t&&t.getValue().then((function(e){!function(e){he(),(ye=new WebSocket(e)).onopen=function(){var e;return ge("[Opened] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onclose=function(){var e;return ge("[Closed] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onerror=function(e){ge("[Error] ".concat(e.reason))},ye.onmessage=function(e){return ge("[Received] ".concat(e.data))}}(e)}))},disconnect:function(){he()},sendMessage:function(){var e=t.value;e&&e.getValue().then((function(e){!function(e){ge("[Sent] ".concat(e)),ye&&ye.send(e)}(e)}))}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var Oe={demoDiv:{name:"div 组件",component:E},demoShadow:{name:"box-shadow",component:de},demoP:{name:"p 组件",component:ie},demoButton:{name:"button 组件",component:u},demoImg:{name:"img 组件",component:U},demoInput:{name:"input 组件",component:J},demoTextarea:{name:"textarea 组件",component:pe},demoUl:{name:"ul/li 组件",component:le},demoIFrame:{name:"iframe 组件",component:R},demoWebSocket:{name:"WebSocket",component:d()(je,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"websocket-demo"},[Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Url: "),Object(l.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(l.g)("div",{class:"row"},[Object(l.g)("button",{onClick:t[0]||(t[0]=Object(l.J)((function(){return e.connect&&e.connect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Connect")]),Object(l.g)("button",{onClick:t[1]||(t[1]=Object(l.J)((function(){return e.disconnect&&e.disconnect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Disconnect")])])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Message: "),Object(l.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(l.g)("button",{onClick:t[2]||(t[2]=Object(l.J)((function(){return e.sendMessage&&e.sendMessage.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Send")])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Log: "),Object(l.g)("div",{class:"output fullscreen"},[Object(l.g)("div",null,[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.output,(function(e,t){return Object(l.t)(),Object(l.f)("p",{key:t},Object(l.D)(e),1)})),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:V},demoTurbo:{name:"Turbo",component:be}};var _e=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)((function(){o.value=y.Native.Dimensions.screen.width}));return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:function(t){var n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:function(e){t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:function(t){var n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:function(e){t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var xe=d()(_e,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"set-native-props-demo"},[Object(l.g)("label",null,"setNativeProps实现拖动效果"),Object(l.g)("div",{class:"native-demo-1-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchDown1&&e.onTouchDown1.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchMove1&&e.onTouchMove1.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(l.g)("div",{class:"splitter"}),Object(l.g)("label",null,"普通渲染实现拖动效果"),Object(l.g)("div",{class:"native-demo-2-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchDown2&&e.onTouchDown2.apply(e,arguments)}),["stop"])),onTouchmove:t[3]||(t[3]=Object(l.J)((function(){return e.onTouchMove2&&e.onTouchMove2.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"native-demo-2-point",style:Object(l.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);var we={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Se=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup:()=>({colorActions:we})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var Ae=d()(Se,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"color-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);var ke={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}},Ce=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup(e){var t=Object(c.ref)(null);return Object(c.onMounted)((function(){e.onRef&&e.onRef(t.value)})),{animationView:t,loopActions:ke}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var Pe=d()(Ce,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);var Ee={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Te={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Ie=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:function(){}}},emits:["actionsDidUpdate"],setup(e){var t=Object(c.toRefs)(e).direction,o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,(function(e){switch(e){case"horizon":o.value=Ee;break;case"vertical":o.value=Te;break;default:throw new Error("direction must be defined in props")}}),{immediate:!0}),Object(c.onMounted)((function(){e.onRef&&e.onRef(n.value)})),{loopActions:o,animationLoop:n}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Le=d()(Ie,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=function(t){return e.$emit("actionsDidUpdate")})},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);var De={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},He={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},Ve=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){var t=Object(c.ref)(null),o=Object(c.ref)({face:De,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),n=Object(c.toRefs)(e).isChanged;return Object(c.watch)(n,(function(e,n){!n&&e?(console.log("changed to face2"),o.value.face=He):n&&!e&&(console.log("changed to face1"),o.value.face=De),setTimeout((function(){t.value&&t.value.start()}),10)})),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ye=d()(Ve,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(l.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Re=Object(c.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Be=d()(Re,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ne=Object(c.defineComponent)({components:{Loop:Le,colorComponent:Ae,CubicBezier:Pe},setup(){var e=Object(c.ref)(!0),t=Object(c.ref)(!0),o=Object(c.ref)(!0),n=Object(c.ref)("horizon"),a=Object(c.ref)(!0),r=Object(c.ref)(null),l=Object(c.shallowRef)(Be);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:l,colorComponent:Ae,isChanged:a,animationRef:r,voteUp:function(){l.value=Be},voteDown:function(){l.value=Ye,a.value=!a.value},onRef:function(e){r.value=e},toggleLoopPlaying:function(){e.value=!e.value},toggleColorPlaying:function(){t.value=!t.value},toggleCubicPlaying:function(){o.value=!o.value},toggleDirection:function(){n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:function(){Object(c.nextTick)().then((function(){console.log("actions updated & startAnimation"),r.value&&r.value.start()}))}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Me=d()(Ne,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("loop"),i=Object(l.z)("color-component"),s=Object(l.z)("cubic-bezier");return Object(l.t)(),Object(l.f)("ul",{id:"animation-demo"},[Object(l.g)("li",null,[Object(l.g)("label",null,"控制动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.toggleLoopPlaying&&e.toggleLoopPlaying.apply(e,arguments)})},[e.loopPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.toggleDirection&&e.toggleDirection.apply(e,arguments)})},["horizon"===e.direction?(Object(l.t)(),Object(l.f)("span",{key:0},"切换为纵向")):(Object(l.t)(),Object(l.f)("span",{key:1},"切换为横向"))])]),Object(l.g)("div",{style:{height:"150px"}},[Object(l.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm a looping animation")]})),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"点赞笑脸动画:"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=function(){return e.voteUp&&e.voteUp.apply(e,arguments)})},[Object(l.g)("span",null,"点赞 👍")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=function(){return e.voteDown&&e.voteDown.apply(e,arguments)})},[Object(l.g)("span",null,"踩 👎")])]),Object(l.g)("div",{class:"vote-face-container center"},[(Object(l.t)(),Object(l.d)(Object(l.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"渐变色动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=function(){return e.toggleColorPlaying&&e.toggleColorPlaying.apply(e,arguments)})},[e.colorPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(i,{playing:e.colorPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"背景色渐变")]})),_:1},8,["playing"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"贝塞尔曲线动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=function(){return e.toggleCubicPlaying&&e.toggleCubicPlaying.apply(e,arguments)})},[e.cubicPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(s,{playing:e.cubicPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]})),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ue=o("./node_modules/vue-router/dist/vue-router.mjs"),ze=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],Fe=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)("fade"),n=Object(c.ref)(!1),a=Object(c.ref)(!1),r=Object(c.ref)(!1);return Object(Ue.onBeforeRouteLeave)((function(t,o,n){e.value||n()})),{supportedOrientations:ze,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,autoHideNavigationBar:r,stopPropagation:function(e){e.stopPropagation()},onClose:function(o){o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:function(){console.log("Dialog is opening")},onClickView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.value=!e.value,o.value=t},onClickOpenSecond:function(e){e.stopPropagation(),t.value=!t.value},onClickDialogConfig:function(e){switch(e){case"hideStatusBar":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":r.value=!r.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var We=d()(Fe,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"dialog-demo"},[Object(l.g)("label",null,"显示或者隐藏对话框:"),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(l.J)((function(){return e.onClickView("slide")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.onClickView("fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.onClickView("slide_fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(l.J)((function(){return e.onClickDialogConfig("hideStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(l.J)((function(){return e.onClickDialogConfig("immerseStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(l.J)((function(){return e.onClickDialogConfig("hideNavigationBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(l.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=function(){return e.onShow&&e.onShow.apply(e,arguments)}),"on:requestClose":t[13]||(t[13]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[14]||(t[14]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.e)(" dialog on iOS platform can only have one child node "),Object(l.g)("div",{class:"dialog-demo-wrapper"},[Object(l.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=function(){return e.stopPropagation&&e.stopPropagation.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(l.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[10]||(t[10]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(l.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ge,Ke=o("./src/util.ts"),Je=Object(c.defineComponent)({setup(){var e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),r=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),d=Object(c.ref)("ready to set"),u=Object(c.ref)(""),p=Object(c.ref)(0),f=function(){var e=I()(D.a.mark((function e(){var o;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.AsyncStorage.getItem("itemKey");case 2:o=e.sent,t.value=o||"undefined";case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=I()(D.a.mark((function e(){var t;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:t=e.sent,console.log("ImageLoader getSize",t),o.value="".concat(t.width,"x").concat(t.height);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=I()(D.a.mark((function e(){var t,o,n=arguments;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,y.Native.getBoundingClientRect(i.value,{relToContainer:t});case 4:o=e.sent,t?r.value="".concat(JSON.stringify(o)):a.value="".concat(JSON.stringify(o)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoundingClientRect error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){l.value=JSON.stringify(Object(Ke.a)()),y.Native.NetInfo.fetch().then((function(e){n.value=e})),Ge=y.Native.NetInfo.addEventListener("change",(function(e){n.value="收到通知: ".concat(e.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(e){s.value="成功状态: ".concat(e.status)})).catch((function(e){s.value="收到错误: ".concat(e)})),y.EventBus.$on("testEvent",(function(){p.value+=1}))})),{Native:y.Native,rect1:a,rect2:r,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:l,fetchText:s,cookieString:d,cookiesValue:u,getSize:v,setItem:function(){y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:f,removeItem:function(){y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:function(){y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:function(){y.Native.Cookie.getAll("https://hippyjs.org").then((function(e){u.value=e}))},getBoundingClientRect:b,triggerAppEvent:function(){y.EventBus.$emit("testEvent")},eventTriggeredTimes:p}},beforeDestroy(){Ge&&y.Native.NetInfo.removeEventListener("change",Ge),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var qe=d()(Je,[["render",function(e,t,o,n,a,r){var c,i;return Object(l.t)(),Object(l.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(l.g)("div",null,[Object(l.e)(" platform "),e.Native.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(l.g)("p",null,Object(l.D)(e.Native.Platform),1)])):Object(l.e)("v-if",!0),Object(l.e)(" device name "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Device"),Object(l.g)("p",null,Object(l.D)(e.Native.Device),1)]),Object(l.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:1,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(l.g)("p",null,Object(l.D)(e.Native.isIPhoneX),1)])):Object(l.e)("v-if",!0),Object(l.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:2,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(l.g)("p",null,Object(l.D)(e.Native.OSVersion||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Internationalization related information "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(l.g)("p",null,Object(l.D)("国际化相关信息")),Object(l.g)("p",null,Object(l.D)("国家 ".concat(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(l.g)("p",null,Object(l.D)("语言 ".concat(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(l.g)("p",null,Object(l.D)("方向 ".concat(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(l.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:3,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(l.g)("p",null,Object(l.D)(e.Native.APILevel||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Whether the screen is vertically displayed "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(l.g)("p",null,Object(l.D)(e.Native.screenIsVertical),1)]),Object(l.e)(" width of window "),e.Native.Dimensions.window.width?(Object(l.t)(),Object(l.f)("div",{key:4,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(l.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(l.t)(),Object(l.f)("div",{key:5,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(l.t)(),Object(l.f)("div",{key:6,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(l.t)(),Object(l.f)("div",{key:7,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" the pt value of a pixel "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(l.g)("p",null,Object(l.D)(e.Native.OnePixel),1)]),Object(l.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:8,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(l.t)(),Object(l.f)("div",{key:9,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:10,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The startup parameters passed from the native "),e.superProps?(Object(l.t)(),Object(l.f)("div",{key:11,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(l.g)("p",null,Object(l.D)(e.superProps),1)])):Object(l.e)("v-if",!0),Object(l.e)(" A demo of Native Event,Just show how to use "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"App event"),Object(l.g)("div",null,[Object(l.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=function(){return e.triggerAppEvent&&e.triggerAppEvent.apply(e,arguments)})},[Object(l.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(l.g)("div",{class:"event-btn-result"},[Object(l.g)("p",null,"Event triggered times: "+Object(l.D)(e.eventTriggeredTimes),1)])])]),Object(l.e)(" example of measuring the size of an element "),Object(l.g)("div",{ref:"measure-block",class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[1]||(t[1]=function(){return e.getBoundingClientRect(!1)})},[Object(l.g)("span",null,"relative to App")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect1),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[2]||(t[2]=function(){return e.getBoundingClientRect(!0)})},[Object(l.g)("span",null,"relative to Container")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect2),1)])],512),Object(l.e)(" local storage "),e.Native.AsyncStorage?(Object(l.t)(),Object(l.f)("div",{key:12,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[3]||(t[3]=function(){return e.setItem&&e.setItem.apply(e,arguments)})},[Object(l.g)("span",null,"setItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[4]||(t[4]=function(){return e.removeItem&&e.removeItem.apply(e,arguments)})},[Object(l.g)("span",null,"removeItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[5]||(t[5]=function(){return e.getItem&&e.getItem.apply(e,arguments)})},[Object(l.g)("span",null,"getItem")]),Object(l.g)("span",null,Object(l.D)(e.storageValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" ImageLoader "),e.Native.ImageLoader?(Object(l.t)(),Object(l.f)("div",{key:13,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[6]||(t[6]=function(){return e.getSize&&e.getSize.apply(e,arguments)})},[Object(l.g)("span",null,"getSize")]),Object(l.g)("span",null,Object(l.D)(e.imageSize),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Fetch "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.fetchText),1)])]),Object(l.e)(" network info "),e.Native.NetInfo?(Object(l.t)(),Object(l.f)("div",{key:14,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.netInfoText),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Cookie "),e.Native.Cookie?(Object(l.t)(),Object(l.f)("div",{key:15,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[7]||(t[7]=function(){return e.setCookie&&e.setCookie.apply(e,arguments)})},[Object(l.g)("span",null,"setCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookieString),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[8]||(t[8]=function(){return e.getCookie&&e.getCookie.apply(e,arguments)})},[Object(l.g)("span",null,"getCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookiesValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" iOS platform "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:16,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(l.g)("p",null,Object(l.D)(e.Native.isIOS()),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Android platform "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:17,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(l.g)("p",null,Object(l.D)(e.Native.isAndroid()),1)])):Object(l.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);var Qe="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Xe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Qe,Qe,Qe],subInfo:["三图评论","11评"]}},Ze={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},$e={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},et=[$e,Xe,Ze,Xe,Ze,Xe,Ze,$e,Xe];var tt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var ot=d()(tt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-one"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-one-image-container"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.itemBean.picList,(function(e,t){return Object(l.t)(),Object(l.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"])})),128))]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])])}]]);var nt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var at=d()(nt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-two"},[Object(l.g)("div",{class:"style-two-left-container"},[Object(l.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])]),Object(l.g)("div",{class:"style-two-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var rt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var lt=d()(rt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-five"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-five-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join(" ")),1)])])}]]),ct=0,it=Object(c.ref)({top:0,left:0}),st=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e(et)}),800)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)(a()(et)),r=!1,l=!1,i=Object(c.ref)(""),s=Object(c.ref)("继续下拉触发刷新"),d=Object(c.ref)("正在加载..."),u=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=2;break}return e.abrupt("return");case 2:return l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",e.next=7,st();case 7:n.value=e.sent,n.value=n.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3});case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=I()(D.a.mark((function e(t){var l;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("endReached",t),!r){e.next=3;break}return e.abrupt("return");case 3:return r=!0,d.value="加载更多...",e.next=7,st();case 7:0===(l=e.sent).length&&(d.value="没有更多数据"),n.value=[].concat(a()(n.value),a()(l)),r=!1,o.value&&o.value.collapsePullFooter();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){r=!1,l=!1,n.value=a()(et),ct=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})})),{loadingState:i,dataSource:n,headerRefreshText:s,footerRefreshText:d,list:e,pullHeader:t,pullFooter:o,onEndReached:p,onHeaderReleased:u,onHeaderIdle:function(){},onHeaderPulling:function(e){l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:function(){},onFooterPulling:function(e){console.log("onFooterPulling",e)},onScroll:function(e){e.stopPropagation(),it.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:function(){if(y.Native){if(e.value){var t=e.value;console.log("scroll to next page",e,it.value,ct);var o=it.value.top+ct-200;t.scrollTo({left:it.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(y.Native){if(e.value){var t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var ut=d()(dt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("style-one"),s=Object(l.z)("style-two"),d=Object(l.z)("style-five"),u=Object(l.z)("pull-footer");return Object(l.t)(),Object(l.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToBottom&&e.scrollToBottom.apply(e,arguments)})},[Object(l.g)("span",null,"翻动到底部")]),Object(l.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(l.D)(e.dataSource.length),1)]),Object(l.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[Object(l.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e,t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(l.t)(),Object(l.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===e.style?(Object(l.t)(),Object(l.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===e.style?(Object(l.t)(),Object(l.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)],8,["type","sticky"])})),128)),Object(l.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var pt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.ref)(2);return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:function(){console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:function(){console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:function(e){console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:function(e){console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:function(t){console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var ft=d()(pt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-swiper"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToPrevPage&&e.scrollToPrevPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到上一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("p",{class:"toolbar-text"}," 当前第 "+Object(l.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(l.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(l.H)((function(){return[Object(l.e)(" slides "),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e){return Object(l.t)(),Object(l.d)(c,{key:e,style:Object(l.p)({backgroundColor:4278222848+100*e})},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm Slide "+Object(l.D)(e+1),1)]})),_:2},1032,["style"])})),128))]})),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(l.e)(" A Demo of dots "),Object(l.g)("div",{id:"swiper-dots"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t){return Object(l.t)(),Object(l.f)("div",{key:t,class:Object(l.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2)})),128))])])}]]);var vt=0,bt={top:0,left:5,bottom:0,right:5},yt="ios"===y.Native.Platform,mt=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e((vt+=1)>=50?[]:[].concat(a()(et),a()(et)))}),600)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)([].concat(a()(et),a()(et),a()(et),a()(et))),t=!1,o=!1,n=Object(c.ref)(!1),r=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null),s="继续下拉触发刷新",d="正在加载...",u=Object(c.computed)((function(){return n.value?"正在刷新":"下拉刷新"})),p=Object(c.ref)(null),f=Object(c.ref)(null),v=Object(c.computed)((function(){return(y.Native.Dimensions.screen.width-bt.left-bt.right-6)/2})),b=function(){var t=I()(D.a.mark((function t(){var o;return D.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.value=!0,t.next=3,mt();case 3:o=t.sent,n.value=!1,e.value=o.reverse(),f.value&&f.value.refreshCompleted();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var o=I()(D.a.mark((function o(){var n;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(console.log("end Reached"),!t){o.next=3;break}return o.abrupt("return");case 3:return t=!0,d="加载更多...",o.next=7,mt();case 7:0===(n=o.sent).length&&(d="没有更多数据"),e.value=[].concat(a()(e.value),a()(n)),t=!1,i.value&&i.value.collapsePullFooter();case 12:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:r,header:f,gridView:p,contentInset:bt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:v,onScroll:function(e){console.log("waterfall onScroll",e)},onRefresh:b,onEndReached:g,onClickItem:function(e){p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:yt,onHeaderPulling:function(e){o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:m,headerRefreshText:s,footerRefreshText:d,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ht=d()(gt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("waterfall-item"),s=Object(l.z)("style-one"),d=Object(l.z)("style-two"),u=Object(l.z)("style-five"),p=Object(l.z)("pull-footer"),f=Object(l.z)("waterfall");return Object(l.t)(),Object(l.f)("div",{id:"demo-waterfall"},[Object(l.i)(f,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(l.H)((function(){return[Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(l.t)(),Object(l.f)("div",{key:0,class:"banner-view"},[Object(l.g)("span",null,"BannerView")])):(Object(l.t)(),Object(l.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(l.H)((function(){return[Object(l.g)("span",null,"BannerView")]})),_:1})),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t,o){return Object(l.t)(),Object(l.d)(i,{key:o,style:Object(l.p)({width:e.itemWidth}),type:t.style,onClick:Object(l.J)((function(){return e.onClickItem(o)}),["stop"])},{default:Object(l.H)((function(){return[1===t.style?(Object(l.t)(),Object(l.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===t.style?(Object(l.t)(),Object(l.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===t.style?(Object(l.t)(),Object(l.d)(u,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)]})),_:2},1032,["style","type","onClick"])})),128)),Object(l.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])]})),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var jt=Object(c.defineComponent)({setup(){var e=Object(c.ref)(0),t=Object(c.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:function(t){e.value=t.height},onTabClick:function(e){t.value=e-1},onDropped:function(e){t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var Ot={demoNative:{name:"Native 能力",component:qe},demoAnimation:{name:"animation 组件",component:Me},demoDialog:{name:"dialog 组件",component:We},demoSwiper:{name:"swiper 组件",component:ft},demoPullHeaderFooter:{name:"pull header/footer 组件",component:ut},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:d()(jt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=function(){return e.onLayout&&e.onLayout.apply(e,arguments)})},[Object(l.g)("div",{id:"demo-content"},[Object(l.g)("div",{id:"banner"}),Object(l.g)("div",{id:"tabs"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(2,(function(t){return Object(l.g)("p",{key:"tab"+t,class:Object(l.o)(e.currentSlide===t-1?"selected":""),onClick:function(o){return e.onTabClick(t)}}," tab "+Object(l.D)(t)+" "+Object(l.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])})),64))]),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(l.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(l.H)((function(){return[Object(l.i)(c,{key:"slide1"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1}),Object(l.i)(c,{key:"slide2"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"self"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1})]})),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:xe}};var _t=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(Oe).map((function(e){return{id:e,name:Oe[e].name}})),t=Object.keys(Ot).map((function(e){return{id:e,name:Ot[e].name}}));return Object(c.onMounted)((function(){})),{featureList:e,nativeFeatureList:t,version:c.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var xt=d()(_t,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("router-link");return Object(l.t)(),Object(l.f)("ul",{class:"feature-list"},[Object(l.g)("li",null,[Object(l.g)("div",{id:"version-info"},[Object(l.g)("p",{class:"feature-title"}," Vue: "+Object(l.D)(e.version),1),e.Native?(Object(l.t)(),Object(l.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(l.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(l.e)("v-if",!0)])]),Object(l.g)("li",null,[Object(l.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.featureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128)),e.nativeFeatureList.length?(Object(l.t)(),Object(l.f)("li",{key:0},[Object(l.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(l.e)("v-if",!0),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.nativeFeatureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128))])}],["__scopeId","data-v-63300fa4"]]);var wt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(c.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:function(){t.value&&t.value.blur()},openBundle:function(){if(e.value){var t=Object(Ke.a)().rootViewId;y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");var St=[{path:"/",component:xt},{path:"/remote-debug",component:d()(wt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.blurInput&&e.blurInput.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"tips-wrap"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.tips,(function(t,o){return Object(l.t)(),Object(l.f)("p",{key:o,class:"tips-item",style:Object(l.p)(e.styles.tipText)},Object(l.D)(o+1)+". "+Object(l.D)(t),5)})),128))]),Object(l.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(l.J)((function(){}),["stop"]),onChange:t[0]||(t[0]=function(t){return e.bundleUrl=t.value})},null,40,["value"]),Object(l.g)("div",{class:"buttonContainer",style:Object(l.p)(e.styles.buttonContainer)},[Object(l.g)("button",{style:Object(l.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.openBundle&&e.openBundle.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",{style:Object(l.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"}].concat(a()(Object.keys(Oe).map((function(e){return{path:"/demo/".concat(e),name:Oe[e].name,component:Oe[e].component}}))),a()(Object.keys(Ot).map((function(e){return{path:"/demo/".concat(e),name:Ot[e].name,component:Ot[e].component}}))));function At(){return Object(r.createHippyRouter)({routes:St})}},"./src/util.ts":function(e,t,o){"use strict";var n;function a(e){n=e}function r(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){o("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); diff --git a/framework/examples/ios-demo/res/vue3/vendor-manifest.json b/framework/examples/ios-demo/res/vue3/vendor-manifest.json index 4a7252c7cef..783c9df4584 100644 --- a/framework/examples/ios-demo/res/vue3/vendor-manifest.json +++ b/framework/examples/ios-demo/res/vue3/vendor-manifest.json @@ -1 +1 @@ -{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/dist/index.js":{"id":"../../packages/hippy-vue-next/dist/index.js","buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"./node_modules/process/browser.js":{"id":"./node_modules/process/browser.js","buildMeta":{"providedExports":true}},"./node_modules/webpack/buildin/global.js":{"id":"./node_modules/webpack/buildin/global.js","buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":"./scripts/vendor.js","buildMeta":{"providedExports":true}}}} \ No newline at end of file +{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":0,"buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":1,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"./node_modules/webpack/buildin/global.js":{"id":2,"buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":4,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/dist/index.js":{"id":5,"buildMeta":{"providedExports":true}},"./node_modules/process/browser.js":{"id":6,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":7,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}}}} \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue3/vendor.ios.js b/framework/examples/ios-demo/res/vue3/vendor.ios.js index d7bbf893879..517bb03cfb6 100644 --- a/framework/examples/ios-demo/res/vue3/vendor.ios.js +++ b/framework/examples/ios-demo/res/vue3/vendor.ios.js @@ -1,4 +1,15 @@ -var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ +var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";n.r(t),function(e){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n122||e.charCodeAt(2)<97)},p=function(e){return e.startsWith("onUpdate:")},y=Object.assign,m=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,b=function(e,t){return g.call(e,t)},O=Array.isArray,_=function(e){return"[object Map]"===I(e)},w=function(e){return"[object Set]"===I(e)},S=function(e){return"[object Date]"===I(e)},E=function(e){return"[object RegExp]"===I(e)},k=function(e){return"function"==typeof e},N=function(e){return"string"==typeof e},T=function(e){return"symbol"===u(e)},x=function(e){return null!==e&&"object"===u(e)},j=function(e){return(x(e)||k(e))&&k(e.then)&&k(e.catch)},A=Object.prototype.toString,I=function(e){return A.call(e)},C=function(e){return I(e).slice(8,-1)},P=function(e){return"[object Object]"===I(e)},R=function(e){return N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},L=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},D=/-(\w)/g,V=F((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),B=/\B([A-Z])/g,U=F((function(e){return e.replace(B,"-$1").toLowerCase()})),H=F((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=F((function(e){return e?"on".concat(H(e)):""})),Y=function(e,t){return!Object.is(e,t)},W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},K=function(e){var t=parseFloat(e);return isNaN(t)?e:t},G=function(e){var t=N(e)?Number(e):NaN;return isNaN(t)?e:t},q=function(){return s||(s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{})},J=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function X(e){return J.test(e)?"__props.".concat(e):"__props[".concat(JSON.stringify(e),"]")}var Z={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},Q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},ee={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},te={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},ne={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},re=c("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),ie=re;function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";var r=e.split(/(\r?\n)/),i=r.filter((function(e,t){return t%2==1}));r=r.filter((function(e,t){return t%2==0}));for(var o=0,a=[],u=0;u=t){for(var c=u-2;c<=u+2||n>o;c++)if(!(c<0||c>=r.length)){var s=c+1;a.push("".concat(s).concat(" ".repeat(Math.max(3-String(s).length,0)),"| ").concat(r[c]));var l=r[c].length,f=i[c]&&i[c].length||0;if(c===u){var d=t-(o-(l+f)),v=Math.max(1,n>o?l-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(v))}else if(c>u){if(n>o){var h=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(h))}o+=l+f}}break}return a.join("\n")}function ae(e){if(O(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function fe(e){var t="";if(!e||N(e))return t;for(var n in e){var r=e[n];if(N(r)||"number"==typeof r){var i=n.startsWith("--")?n:U(n);t+="".concat(i,":").concat(r,";")}}return t}function de(e){var t="";if(N(e))t=e;else if(O(e))for(var n=0;n/="'\u0009\u000a\u000c\u0020]/,Se={};function Ee(e){if(Se.hasOwnProperty(e))return Se[e];var t=we.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),Se[e]=!t}var ke={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ne=c("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Te=c("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function xe(e){if(null==e)return!1;var t=u(e);return"string"===t||"number"===t||"boolean"===t}var je=/["'&<>]/;function Ae(e){var t=""+e,n=je.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|"]=a,e}),{})}:w(n)?{["Set(".concat(n.size,")")]:i(n.values()).map((function(e){return De(e)}))}:T(n)?De(n):!x(n)||O(n)||P(n)?n:String(n)},De=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return T(e)?"Symbol(".concat(null!=(t=e.description)?t:n,")"):e}}.call(this,n(2))},function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return b})),n.d(t,"ITERATE_KEY",(function(){return Y})),n.d(t,"ReactiveEffect",(function(){return E})),n.d(t,"ReactiveFlags",(function(){return gt})),n.d(t,"TrackOpTypes",(function(){return yt})),n.d(t,"TriggerOpTypes",(function(){return mt})),n.d(t,"computed",(function(){return qe})),n.d(t,"customRef",(function(){return st})),n.d(t,"deferredComputed",(function(){return pt})),n.d(t,"effect",(function(){return j})),n.d(t,"effectScope",(function(){return O})),n.d(t,"enableTracking",(function(){return L})),n.d(t,"getCurrentScope",(function(){return w})),n.d(t,"isProxy",(function(){return $e})),n.d(t,"isReactive",(function(){return Be})),n.d(t,"isReadonly",(function(){return Ue})),n.d(t,"isRef",(function(){return Ze})),n.d(t,"isShallow",(function(){return He})),n.d(t,"markRaw",(function(){return We})),n.d(t,"onScopeDispose",(function(){return S})),n.d(t,"pauseScheduling",(function(){return F})),n.d(t,"pauseTracking",(function(){return R})),n.d(t,"proxyRefs",(function(){return ut})),n.d(t,"reactive",(function(){return Le})),n.d(t,"readonly",(function(){return Fe})),n.d(t,"ref",(function(){return Qe})),n.d(t,"resetScheduling",(function(){return D})),n.d(t,"resetTracking",(function(){return M})),n.d(t,"shallowReactive",(function(){return Me})),n.d(t,"shallowReadonly",(function(){return De})),n.d(t,"shallowRef",(function(){return et})),n.d(t,"stop",(function(){return A})),n.d(t,"toRaw",(function(){return Ye})),n.d(t,"toRef",(function(){return vt})),n.d(t,"toRefs",(function(){return lt})),n.d(t,"toValue",(function(){return ot})),n.d(t,"track",(function(){return z})),n.d(t,"trigger",(function(){return K})),n.d(t,"triggerRef",(function(){return rt})),n.d(t,"unref",(function(){return it}));var r,i=n(0);function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]&&arguments[0];h(this,e),this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=r,!t&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}),[{key:"active",get:function(){return this._active}},{key:"run",value:function(e){if(this._active){var t=r;try{return r=this,e()}finally{r=t}}else 0}},{key:"on",value:function(){r=this}},{key:"off",value:function(){r=this.parent}},{key:"stop",value:function(e){if(this._active){var t,n;for(t=0,n=this.effects.length;t1&&void 0!==arguments[1]?arguments[1]:r;t&&t.active&&t.effects.push(e)}function w(){return r}function S(e){r&&r.cleanups.push(e)}var E=function(){return y((function e(t,n,r,i){h(this,e),this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,_(this,i)}),[{key:"dirty",get:function(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,R();for(var e=0;e=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),M()}return this._dirtyLevel>=4},set:function(e){this._dirtyLevel=e?4:0}},{key:"run",value:function(){if(this._dirtyLevel=0,!this.active)return this.fn();var e=I,t=g;try{return I=!0,g=this,this._runnings++,N(this),this.fn()}finally{T(this),this._runnings--,g=t,I=e}}},{key:"stop",value:function(){this.active&&(N(this),T(this),this.onStop&&this.onStop(),this.active=!1)}}])}();function k(e){return e.value}function N(e){e._trackId++,e._depsLength=0}function T(e){if(e.deps.length>e._depsLength){for(var t=e._depsLength;t=f)&&c.push(e)}))}else switch(void 0!==n&&c.push(u.get(n)),t){case"add":Object(i.isArray)(e)?Object(i.isIntegerKey)(n)&&c.push(u.get("length")):(c.push(u.get(Y)),Object(i.isMap)(e)&&c.push(u.get(W)));break;case"delete":Object(i.isArray)(e)||(c.push(u.get(Y)),Object(i.isMap)(e)&&c.push(u.get(W)));break;case"set":Object(i.isMap)(e)&&c.push(u.get(Y))}F();var d,v=l(c);try{for(v.s();!(d=v.n()).done;){var h=d.value;h&&U(h,4)}}catch(e){v.e(e)}finally{v.f()}D()}}var G=Object(i.makeMap)("__proto__,__v_isRef,__isVue"),q=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(i.isSymbol)),J=X();function X(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=Ye(this),n=0,r=this.length;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h(this,e),this._isReadonly=t,this._isShallow=n}),[{key:"get",value:function(e,t,n){var r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Re:Pe:o?Ce:Ie).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;var a=Object(i.isArray)(e);if(!r){if(a&&Object(i.hasOwn)(J,t))return Reflect.get(J,t,n);if("hasOwnProperty"===t)return Z}var u=Reflect.get(e,t,n);return(Object(i.isSymbol)(t)?q.has(t):G(t))?u:(r||z(e,0,t),o?u:Ze(u)?a&&Object(i.isIntegerKey)(t)?u:u.value:Object(i.isObject)(u)?r?Fe(u):Le(u):u)}}])}(),ee=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h(this,t),o(this,t,[!1,e])}return u(t,e),y(t,[{key:"set",value:function(e,t,n,r){var o=e[t];if(!this._isShallow){var a=Ue(o);if(He(n)||Ue(n)||(o=Ye(o),n=Ye(n)),!Object(i.isArray)(e)&&Ze(o)&&!Ze(n))return!a&&(o.value=n,!0)}var u=Object(i.isArray)(e)&&Object(i.isIntegerKey)(t)?Number(t)0&&void 0!==arguments[0]&&arguments[0];return h(this,t),o(this,t,[!0,e])}return u(t,e),y(t,[{key:"set",value:function(e,t){return!0}},{key:"deleteProperty",value:function(e,t){return!0}}])}(Q),ne=new ee,re=new te,ie=new ee(!0),oe=new te(!0),ae=function(e){return e},ue=function(e){return Reflect.getPrototypeOf(e)};function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ye(e=e.__v_raw),a=Ye(t);n||(Object(i.hasChanged)(t,a)&&z(o,0,t),z(o,0,a));var u=ue(o),c=u.has,s=r?ae:n?Ke:ze;return c.call(o,t)?s(e.get(t)):c.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=Ye(n),o=Ye(e);return t||(Object(i.hasChanged)(e,o)&&z(r,0,e),z(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&z(Ye(e),0,Y),Reflect.get(e,"size",e)}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||He(e)||Ue(e)||(e=Ye(e));var n=Ye(this),r=ue(n),i=r.has.call(n,e);return i||(n.add(e),K(n,"add",e,e)),this}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n||He(t)||Ue(t)||(t=Ye(t));var r=Ye(this),o=ue(r),a=o.has,u=o.get,c=a.call(r,e);c||(e=Ye(e),c=a.call(r,e));var s=u.call(r,e);return r.set(e,t),c?Object(i.hasChanged)(t,s)&&K(r,"set",e,t):K(r,"add",e,t),this}function ve(e){var t=Ye(this),n=ue(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=Ye(e),o=r.call(t,e));i&&i.call(t,e);var a=t.delete(e);return o&&K(t,"delete",e,void 0),a}function he(){var e=Ye(this),t=0!==e.size,n=e.clear();return t&&K(e,"clear",void 0,void 0),n}function pe(e,t){return function(n,r){var i=this,o=i.__v_raw,a=Ye(o),u=t?ae:e?Ke:ze;return!e&&z(a,0,Y),o.forEach((function(e,t){return n.call(r,u(e),u(t),i)}))}}function ye(e,t,n){return function(){var r=this.__v_raw,o=Ye(r),a=Object(i.isMap)(o),u="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,s=r[e].apply(r,arguments),l=n?ae:t?Ke:ze;return!t&&z(o,0,c?W:Y),{next:function(){var e=s.next(),t=e.value,n=e.done;return n?{value:t,done:n}:{value:u?[l(t[0]),l(t[1])]:l(t),done:n}},[Symbol.iterator]:function(){return this}}}}function me(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function ge(){var e={get:function(e){return ce(this,e)},get size(){return le(this)},has:se,add:fe,set:de,delete:ve,clear:he,forEach:pe(!1,!1)},t={get:function(e){return ce(this,e,!1,!0)},get size(){return le(this)},has:se,add:function(e){return fe.call(this,e,!0)},set:function(e,t){return de.call(this,e,t,!0)},delete:ve,clear:he,forEach:pe(!1,!0)},n={get:function(e){return ce(this,e,!0)},get size(){return le(this,!0)},has:function(e){return se.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!1)},r={get:function(e){return ce(this,e,!0,!0)},get size(){return le(this,!0)},has:function(e){return se.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=ye(i,!1,!1),n[i]=ye(i,!0,!1),t[i]=ye(i,!1,!0),r[i]=ye(i,!0,!0)})),[e,n,t,r]}var be,Oe,_e=(Oe=4,function(e){if(Array.isArray(e))return e}(be=ge())||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(be,Oe)||f(be,Oe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),we=_e[0],Se=_e[1],Ee=_e[2],ke=_e[3];function Ne(e,t){var n=t?e?ke:Ee:e?Se:we;return function(t,r,o){return"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Object(i.hasOwn)(n,r)&&r in t?n:t,r,o)}}var Te={get:Ne(!1,!1)},xe={get:Ne(!1,!0)},je={get:Ne(!0,!1)},Ae={get:Ne(!0,!0)};var Ie=new WeakMap,Ce=new WeakMap,Pe=new WeakMap,Re=new WeakMap;function Le(e){return Ue(e)?e:Ve(e,!1,ne,Te,Ie)}function Me(e){return Ve(e,!1,ie,xe,Ce)}function Fe(e){return Ve(e,!0,re,je,Pe)}function De(e){return Ve(e,!0,oe,Ae,Re)}function Ve(e,t,n,r,o){if(!Object(i.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=o.get(e);if(a)return a;var u,c=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(i.toRawType)(u));if(0===c)return e;var s=new Proxy(e,2===c?r:n);return o.set(e,s),s}function Be(e){return Ue(e)?Be(e.__v_raw):!(!e||!e.__v_isReactive)}function Ue(e){return!(!e||!e.__v_isReadonly)}function He(e){return!(!e||!e.__v_isShallow)}function $e(e){return!!e&&!!e.__v_raw}function Ye(e){var t=e&&e.__v_raw;return t?Ye(t):e}function We(e){return Object.isExtensible(e)&&Object(i.def)(e,"__v_skip",!0),e}var ze=function(e){return Object(i.isObject)(e)?Le(e):e},Ke=function(e){return Object(i.isObject)(e)?Fe(e):e},Ge=function(){return y((function e(t,n,r,i){var o=this;h(this,e),this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new E((function(){return t(o._value)}),(function(){return Xe(o,2===o.effect._dirtyLevel?2:3)})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}),[{key:"value",get:function(){var e=Ye(this);return e._cacheable&&!e.effect.dirty||!Object(i.hasChanged)(e._value,e._value=e.effect.run())||Xe(e,4),Je(e),e.effect._dirtyLevel>=2&&Xe(e,2),e._value},set:function(e){this._setter(e)}},{key:"_dirty",get:function(){return this.effect.dirty},set:function(e){this.effect.dirty=e}}])}();function qe(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(i.isFunction)(e);a?(n=e,r=i.NOOP):(n=e.get,r=e.set);var u=new Ge(n,r,a||!r,o);return u}function Je(e){var t;I&&g&&(e=Ye(e),V(g,null!=(t=e.dep)?t:e.dep=H((function(){return e.dep=void 0}),e instanceof Ge?e:void 0)))}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=(e=Ye(e)).dep;n&&U(n,t)}function Ze(e){return!(!e||!0!==e.__v_isRef)}function Qe(e){return tt(e,!1)}function et(e){return tt(e,!0)}function tt(e,t){return Ze(e)?e:new nt(e,t)}var nt=function(){return y((function e(t,n){h(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ye(t),this._value=n?t:ze(t)}),[{key:"value",get:function(){return Je(this),this._value},set:function(e){var t=this.__v_isShallow||He(e)||Ue(e);if(e=t?e:Ye(e),Object(i.hasChanged)(e,this._rawValue)){var n=this._rawValue;this._rawValue=e,this._value=t?e:ze(e),Xe(this,4,e,n)}}}])}();function rt(e){Xe(e,4,void 0)}function it(e){return Ze(e)?e.value:e}function ot(e){return Object(i.isFunction)(e)?e():it(e)}var at={get:function(e,t,n){return it(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ut(e){return Be(e)?e:new Proxy(e,at)}var ct=function(){return y((function e(t){var n=this;h(this,e),this.dep=void 0,this.__v_isRef=!0;var r=t((function(){return Je(n)}),(function(){return Xe(n)})),i=r.get,o=r.set;this._get=i,this._set=o}),[{key:"value",get:function(){return this._get()},set:function(e){this._set(e)}}])}();function st(e){return new ct(e)}function lt(e){var t=Object(i.isArray)(e)?new Array(e.length):{};for(var n in e)t[n]=ht(e,n);return t}var ft=function(){return y((function e(t,n,r){h(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}),[{key:"value",get:function(){var e=this._object[this._key];return void 0===e?this._defaultValue:e},set:function(e){this._object[this._key]=e}},{key:"dep",get:function(){return e=Ye(this._object),t=this._key,(n=$.get(e))&&n.get(t);var e,t,n}}])}(),dt=function(){return y((function e(t){h(this,e),this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}),[{key:"value",get:function(){return this._getter()}}])}();function vt(e,t,n){return Ze(e)?e:Object(i.isFunction)(e)?new dt(e):Object(i.isObject)(e)&&arguments.length>1?ht(e,t,n):Qe(e)}function ht(e,t,n){var r=e[t];return Ze(r)?r:new ft(e,t,n)}var pt=qe,yt={GET:"get",HAS:"has",ITERATE:"iterate"},mt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},gt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){e.exports=n},function(e,t,n){n(5)},function(e,t,n){"use strict";(function(e,r){ /*! * @hippy/vue-next v3.3.1 * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) @@ -39,4 +50,4 @@ var i=["mode","valueType","startValue","toValue"],o=["transform"],a=["transform" * @vue/shared v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function c(e,t){var n=new Set(e.split(","));return t?function(e){return n.has(e.toLowerCase())}:function(e){return n.has(e)}}n.d(t,"EMPTY_ARR",(function(){return f})),n.d(t,"EMPTY_OBJ",(function(){return l})),n.d(t,"NO",(function(){return p})),n.d(t,"NOOP",(function(){return d})),n.d(t,"PatchFlagNames",(function(){return Q})),n.d(t,"PatchFlags",(function(){return Z})),n.d(t,"ShapeFlags",(function(){return ee})),n.d(t,"SlotFlags",(function(){return te})),n.d(t,"camelize",(function(){return V})),n.d(t,"capitalize",(function(){return H})),n.d(t,"def",(function(){return z})),n.d(t,"escapeHtml",(function(){return Ae})),n.d(t,"escapeHtmlComment",(function(){return Ce})),n.d(t,"extend",(function(){return y})),n.d(t,"genPropsAccessExp",(function(){return X})),n.d(t,"generateCodeFrame",(function(){return oe})),n.d(t,"getGlobalThis",(function(){return q})),n.d(t,"hasChanged",(function(){return Y})),n.d(t,"hasOwn",(function(){return b})),n.d(t,"hyphenate",(function(){return U})),n.d(t,"includeBooleanAttr",(function(){return _e})),n.d(t,"invokeArrayFns",(function(){return W})),n.d(t,"isArray",(function(){return O})),n.d(t,"isBooleanAttr",(function(){return Oe})),n.d(t,"isBuiltInDirective",(function(){return M})),n.d(t,"isDate",(function(){return S})),n.d(t,"isFunction",(function(){return k})),n.d(t,"isGloballyAllowed",(function(){return re})),n.d(t,"isGloballyWhitelisted",(function(){return ie})),n.d(t,"isHTMLTag",(function(){return ve})),n.d(t,"isIntegerKey",(function(){return R})),n.d(t,"isKnownHtmlAttr",(function(){return Ne})),n.d(t,"isKnownSvgAttr",(function(){return xe})),n.d(t,"isMap",(function(){return _})),n.d(t,"isMathMLTag",(function(){return ye})),n.d(t,"isModelListener",(function(){return h})),n.d(t,"isObject",(function(){return T})),n.d(t,"isOn",(function(){return v})),n.d(t,"isPlainObject",(function(){return P})),n.d(t,"isPromise",(function(){return j})),n.d(t,"isRegExp",(function(){return E})),n.d(t,"isRenderableAttrValue",(function(){return Te})),n.d(t,"isReservedProp",(function(){return L})),n.d(t,"isSSRSafeAttrName",(function(){return Ee})),n.d(t,"isSVGTag",(function(){return he})),n.d(t,"isSet",(function(){return w})),n.d(t,"isSpecialBooleanAttr",(function(){return be})),n.d(t,"isString",(function(){return N})),n.d(t,"isSymbol",(function(){return x})),n.d(t,"isVoidTag",(function(){return me})),n.d(t,"looseEqual",(function(){return Pe})),n.d(t,"looseIndexOf",(function(){return Re})),n.d(t,"looseToNumber",(function(){return K})),n.d(t,"makeMap",(function(){return c})),n.d(t,"normalizeClass",(function(){return de})),n.d(t,"normalizeProps",(function(){return pe})),n.d(t,"normalizeStyle",(function(){return ae})),n.d(t,"objectToString",(function(){return A})),n.d(t,"parseStringStyle",(function(){return le})),n.d(t,"propsToAttrMap",(function(){return ke})),n.d(t,"remove",(function(){return m})),n.d(t,"slotFlagsText",(function(){return ne})),n.d(t,"stringifyStyle",(function(){return fe})),n.d(t,"toDisplayString",(function(){return Le})),n.d(t,"toHandlerKey",(function(){return $})),n.d(t,"toNumber",(function(){return G})),n.d(t,"toRawType",(function(){return C})),n.d(t,"toTypeString",(function(){return I}));var s,l={},f=[],d=function(){},p=function(){return!1},v=function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)},h=function(e){return e.startsWith("onUpdate:")},y=Object.assign,m=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,b=function(e,t){return g.call(e,t)},O=Array.isArray,_=function(e){return"[object Map]"===I(e)},w=function(e){return"[object Set]"===I(e)},S=function(e){return"[object Date]"===I(e)},E=function(e){return"[object RegExp]"===I(e)},k=function(e){return"function"==typeof e},N=function(e){return"string"==typeof e},x=function(e){return"symbol"===u(e)},T=function(e){return null!==e&&"object"===u(e)},j=function(e){return(T(e)||k(e))&&k(e.then)&&k(e.catch)},A=Object.prototype.toString,I=function(e){return A.call(e)},C=function(e){return I(e).slice(8,-1)},P=function(e){return"[object Object]"===I(e)},R=function(e){return N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},L=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},D=/-(\w)/g,V=F((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),B=/\B([A-Z])/g,U=F((function(e){return e.replace(B,"-$1").toLowerCase()})),H=F((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=F((function(e){return e?"on".concat(H(e)):""})),Y=function(e,t){return!Object.is(e,t)},W=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=e.split(/(\r?\n)/),i=r.filter((function(e,t){return t%2==1}));r=r.filter((function(e,t){return t%2==0}));for(var o=0,a=[],u=0;u=t){for(var c=u-2;c<=u+2||n>o;c++)if(!(c<0||c>=r.length)){var s=c+1;a.push("".concat(s).concat(" ".repeat(Math.max(3-String(s).length,0)),"| ").concat(r[c]));var l=r[c].length,f=i[c]&&i[c].length||0;if(c===u){var d=t-(o-(l+f)),p=Math.max(1,n>o?l-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(c>u){if(n>o){var v=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(v))}o+=l+f}}break}return a.join("\n")}function ae(e){if(O(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function fe(e){var t="";if(!e||N(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:U(n);(N(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}function de(e){var t="";if(N(e))t=e;else if(O(e))for(var n=0;n/="'\u0009\u000a\u000c\u0020]/,Se={};function Ee(e){if(Se.hasOwnProperty(e))return Se[e];var t=we.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),Se[e]=!t}var ke={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ne=c("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),xe=c("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Te(e){if(null==e)return!1;var t=u(e);return"string"===t||"number"===t||"boolean"===t}var je=/["'&<>]/;function Ae(e){var t=""+e,n=je.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|"]=a,e}),{})}:w(t)?{["Set(".concat(t.size,")")]:i(t.values()).map((function(e){return Fe(e)}))}:x(t)?Fe(t):!T(t)||O(t)||P(t)?t:String(t)},Fe=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x(e)?"Symbol(".concat(null!=(t=e.description)?t:n,")"):e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f1)for(var n=1;n122||e.charCodeAt(2)<97)},h=function(e){return e.startsWith("onUpdate:")},y=Object.assign,m=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,b=function(e,t){return g.call(e,t)},O=Array.isArray,_=function(e){return"[object Map]"===I(e)},w=function(e){return"[object Set]"===I(e)},S=function(e){return"[object Date]"===I(e)},E=function(e){return"[object RegExp]"===I(e)},k=function(e){return"function"==typeof e},N=function(e){return"string"==typeof e},x=function(e){return"symbol"===u(e)},T=function(e){return null!==e&&"object"===u(e)},j=function(e){return(T(e)||k(e))&&k(e.then)&&k(e.catch)},A=Object.prototype.toString,I=function(e){return A.call(e)},C=function(e){return I(e).slice(8,-1)},P=function(e){return"[object Object]"===I(e)},R=function(e){return N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},L=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},D=/-(\w)/g,V=F((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),B=/\B([A-Z])/g,U=F((function(e){return e.replace(B,"-$1").toLowerCase()})),H=F((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=F((function(e){return e?"on".concat(H(e)):""})),Y=function(e,t){return!Object.is(e,t)},W=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=e.split(/(\r?\n)/),i=r.filter((function(e,t){return t%2==1}));r=r.filter((function(e,t){return t%2==0}));for(var o=0,a=[],u=0;u=t){for(var c=u-2;c<=u+2||n>o;c++)if(!(c<0||c>=r.length)){var s=c+1;a.push("".concat(s).concat(" ".repeat(Math.max(3-String(s).length,0)),"| ").concat(r[c]));var l=r[c].length,f=i[c]&&i[c].length||0;if(c===u){var d=t-(o-(l+f)),p=Math.max(1,n>o?l-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(c>u){if(n>o){var v=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(v))}o+=l+f}}break}return a.join("\n")}function ae(e){if(O(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function fe(e){var t="";if(!e||N(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:U(n);(N(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}function de(e){var t="";if(N(e))t=e;else if(O(e))for(var n=0;n/="'\u0009\u000a\u000c\u0020]/,Se={};function Ee(e){if(Se.hasOwnProperty(e))return Se[e];var t=we.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),Se[e]=!t}var ke={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ne=c("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),xe=c("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Te(e){if(null==e)return!1;var t=u(e);return"string"===t||"number"===t||"boolean"===t}var je=/["'&<>]/;function Ae(e){var t=""+e,n=je.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|"]=a,e}),{})}:w(t)?{["Set(".concat(t.size,")")]:i(t.values()).map((function(e){return Fe(e)}))}:x(t)?Fe(t):!T(t)||O(t)||P(t)?t:String(t)},Fe=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x(e)?"Symbol(".concat(null!=(t=e.description)?t:n,")"):e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f1)for(var n=1;nObject(a.h)(a.BaseTransition,d(e),t);l.displayName="Transition";const c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},s=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.i)(e)?e.some(e=>e.length>1):e.length>1);function d(e){const t={};for(const o in e)o in c||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:l=o+"-enter-from",enterActiveClass:d=o+"-enter-active",enterToClass:v=o+"-enter-to",appearFromClass:m=l,appearActiveClass:g=d,appearToClass:h=v,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:w=o+"-leave-to"}=e,x=function(e){if(null==e)return null;if(Object(n.n)(e))return[p(e.enter),p(e.leave)];{const t=p(e);return[t,t]}}(r),S=x&&x[0],A=x&&x[1],{onBeforeEnter:C,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:L=C,onAppear:I=k,onAppearCancelled:D=P}=t,V=(e,t,o)=>{b(e,t?h:v),b(e,t?g:d),o&&o()},Y=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},H=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);s(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),i(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){s(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){s(L,[e]),u(e,m),u(e,g)},onEnter:H(!1),onAppear:H(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>Y(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),i(E)||f(e,a,A,o))}),s(E,[e,o])},onEnterCancelled(e){V(e,!1),s(P,[e])},onAppearCancelled(e){V(e,!0),s(D,[e])},onLeaveCancelled(e){Y(e),s(T,[e])}})}function p(e){return Object(n.x)(e)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[r]||(e[r]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[r];o&&(o.delete(t),o.size||(e[r]=void 0))}function y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v=0;function f(e,t,o,a){const n=e._endId=++v,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:s}=m(e,t);if(!l)return a();const i=l+"end";let d=0;const p=()=>{e.removeEventListener(i,u),r()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),s=a("animationDuration"),i=g(c,s);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?i>0&&(d="animation",p=i,u=s.length):(p=Math.max(l,i),d=p>0?l>i?"transition":"animation":null,u=d?"transition"===d?r.length:s.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthh(t)+h(e[o])))}function h(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const O=Symbol("_vod"),_=Symbol("_vsh"),w={beforeMount(e,{value:t},{transition:o}){e[O]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):x(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:a}){!t!=!o&&(a?t?(a.beforeEnter(e),x(e,!0),a.enter(e)):a.leave(e,()=>{x(e,!1)}):x(e,t))},beforeUnmount(e,{value:t}){x(e,t)}};function x(e,t){e.style.display=t?e[O]:"none",e[_]=!t}Symbol("");Symbol("_vei"); /*! #__NO_SIDE_EFFECTS__ */ -"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); diff --git a/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json b/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json index 4a7252c7cef..783c9df4584 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json +++ b/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json @@ -1 +1 @@ -{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/dist/index.js":{"id":"../../packages/hippy-vue-next/dist/index.js","buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js","buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"./node_modules/process/browser.js":{"id":"./node_modules/process/browser.js","buildMeta":{"providedExports":true}},"./node_modules/webpack/buildin/global.js":{"id":"./node_modules/webpack/buildin/global.js","buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":"./scripts/vendor.js","buildMeta":{"providedExports":true}}}} \ No newline at end of file +{"name":"hippyVueBase","content":{"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":{"id":0,"buildMeta":{"exportsType":"namespace","providedExports":["EMPTY_ARR","EMPTY_OBJ","NO","NOOP","PatchFlagNames","PatchFlags","ShapeFlags","SlotFlags","camelize","capitalize","def","escapeHtml","escapeHtmlComment","extend","genPropsAccessExp","generateCodeFrame","getGlobalThis","hasChanged","hasOwn","hyphenate","includeBooleanAttr","invokeArrayFns","isArray","isBooleanAttr","isBuiltInDirective","isDate","isFunction","isGloballyAllowed","isGloballyWhitelisted","isHTMLTag","isIntegerKey","isKnownHtmlAttr","isKnownSvgAttr","isMap","isMathMLTag","isModelListener","isObject","isOn","isPlainObject","isPromise","isRegExp","isRenderableAttrValue","isReservedProp","isSSRSafeAttrName","isSVGTag","isSet","isSpecialBooleanAttr","isString","isSymbol","isVoidTag","looseEqual","looseIndexOf","looseToNumber","makeMap","normalizeClass","normalizeProps","normalizeStyle","objectToString","parseStringStyle","propsToAttrMap","remove","slotFlagsText","stringifyStyle","toDisplayString","toHandlerKey","toNumber","toRawType","toTypeString"]}},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":{"id":1,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ITERATE_KEY","ReactiveEffect","ReactiveFlags","TrackOpTypes","TriggerOpTypes","computed","customRef","deferredComputed","effect","effectScope","enableTracking","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","pauseScheduling","pauseTracking","proxyRefs","reactive","readonly","ref","resetScheduling","resetTracking","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","track","trigger","triggerRef","unref"]}},"./node_modules/webpack/buildin/global.js":{"id":2,"buildMeta":{"providedExports":true}},"./scripts/vendor.js":{"id":4,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/dist/index.js":{"id":5,"buildMeta":{"providedExports":true}},"./node_modules/process/browser.js":{"id":6,"buildMeta":{"providedExports":true}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":{"id":7,"buildMeta":{"exportsType":"namespace","providedExports":["EffectScope","ReactiveEffect","TrackOpTypes","TriggerOpTypes","customRef","effect","effectScope","getCurrentScope","isProxy","isReactive","isReadonly","isRef","isShallow","markRaw","onScopeDispose","proxyRefs","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","stop","toRaw","toRef","toRefs","toValue","triggerRef","unref","camelize","capitalize","normalizeClass","normalizeProps","normalizeStyle","toDisplayString","toHandlerKey","BaseTransition","BaseTransitionPropsValidators","Comment","DeprecationTypes","ErrorCodes","ErrorTypeStrings","Fragment","KeepAlive","Static","Suspense","Teleport","Text","assertNumber","callWithAsyncErrorHandling","callWithErrorHandling","cloneVNode","compatUtils","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createHydrationRenderer","createPropsRestProxy","createRenderer","createSlots","createStaticVNode","createTextVNode","createVNode","defineAsyncComponent","defineComponent","defineEmits","defineExpose","defineModel","defineOptions","defineProps","defineSlots","devtools","getCurrentInstance","getTransitionRawChildren","guardReactiveProps","h","handleError","hasInjectionContext","initCustomFormatter","inject","isMemoSame","isRuntimeOnly","isVNode","mergeDefaults","mergeModels","mergeProps","nextTick","onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onDeactivated","onErrorCaptured","onMounted","onRenderTracked","onRenderTriggered","onServerPrefetch","onUnmounted","onUpdated","openBlock","popScopeId","provide","pushScopeId","queuePostFlushCb","registerRuntimeCompiler","renderList","renderSlot","resolveComponent","resolveDirective","resolveDynamicComponent","resolveFilter","resolveTransitionHooks","setBlockTracking","setDevtoolsHook","setTransitionHooks","ssrContextKey","ssrUtils","toHandlers","transformVNodeArgs","useAttrs","useModel","useSSRContext","useSlots","useTransitionState","version","warn","watch","watchEffect","watchPostEffect","watchSyncEffect","withAsyncContext","withCtx","withDefaults","withDirectives","withMemo","withScopeId"]}}}} \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js index a1493bdc41b..8589f9ffb51 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js @@ -1,4 +1,16 @@ -var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ +var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";n.r(t),function(e){ +/** +* @vue/shared v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return xe})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return p})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return x})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return A})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return fe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return Ae})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ie})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return T})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),T=e=>N(e).slice(8,-1),x=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},k=/-(\w)/g,P=I(e=>e.replace(k,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=I(e=>e.replace(R,"-$1").toLowerCase()),L=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=I(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n];if(O(r)||"number"==typeof r){t+=`${n.startsWith("--")?n:M(n)}:${r};`}}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>!(!e||!0!==e.__v_isRef),Ie=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?Ce(e)?Ie(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>Ce(t)?ke(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Pe(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Pe(e))}:_(t)?Pe(t):!E(t)||h(t)||x(t)?t:String(t),Pe=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n(2))},function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return nt})),n.d(t,"TrackOpTypes",(function(){return et})),n.d(t,"TriggerOpTypes",(function(){return tt})),n.d(t,"computed",(function(){return Pe})),n.d(t,"customRef",(function(){return Ke})),n.d(t,"deferredComputed",(function(){return Qe})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return xe})),n.d(t,"isReactive",(function(){return we})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ae})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return We})),n.d(t,"reactive",(function(){return be})),n.d(t,"readonly",(function(){return _e})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return Oe})),n.d(t,"shallowReadonly",(function(){return Ee})),n.d(t,"shallowRef",(function(){return De})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return je})),n.d(t,"toRef",(function(){return Xe})),n.d(t,"toRefs",(function(){return Ge})),n.d(t,"toValue",(function(){return He})),n.d(t,"track",(function(){return P})),n.d(t,"trigger",(function(){return R})),n.d(t,"triggerRef",(function(){return $e})),n.d(t,"unref",(function(){return Ue}));var r=n(0); +/** +* @vue/reactivity v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let o,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),S()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=y,t=i;try{return y=!0,i=this,this._runnings++,p(this),this.fn()}finally{h(this),this._runnings--,i=t,y=e}}stop(){this.active&&(p(this),h(this),this.onStop&&this.onStop(),this.active=!1)}}function f(e){return e.value}function p(e){e._trackId++,e._depsLength=0}function h(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(Object(r.extend)(n,t),t.scope&&a(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function g(e){e.effect.stop()}let y=!0,b=0;const O=[];function _(){O.push(y),y=!1}function E(){O.push(y),y=!0}function S(){const e=O.pop();y=void 0===e||e}function w(){b++}function N(){for(b--;!b&&x.length;)x.shift()()}function T(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&m(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const x=[];function j(e,t,n){w();for(const n of e.keys()){let r;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},C=new WeakMap,I=Symbol(""),k=Symbol("");function P(e,t,n){if(y&&i){let t=C.get(e);t||C.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=A(()=>t.delete(n))),T(i,r)}}function R(e,t,n,o,i,s){const c=C.get(e);if(!c)return;let a=[];if("clear"===t)a=[...c.values()];else if("length"===n&&Object(r.isArray)(e)){const e=Number(o);c.forEach((t,n)=>{("length"===n||!Object(r.isSymbol)(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(I)),Object(r.isMap)(e)&&a.push(c.get(k)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(I)),Object(r.isMap)(e)&&a.push(c.get(k)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(I))}w();for(const e of a)e&&j(e,4);N()}const M=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),F=D();function D(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=je(this);for(let e=0,t=this.length;e{e[t]=function(...e){_(),w();const n=je(this)[t].apply(this,e);return N(),S(),n}}),e}function V(e){Object(r.isSymbol)(e)||(e=String(e));const t=je(this);return P(t,0,e),t.hasOwnProperty(e)}class B{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?ye:ge:i?ve:me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=Object(r.isArray)(e);if(!o){if(s&&Object(r.hasOwn)(F,t))return Reflect.get(F,t,n);if("hasOwnProperty"===t)return V}const c=Reflect.get(e,t,n);return(Object(r.isSymbol)(t)?L.has(t):M(t))?c:(o||P(e,0,t),i?c:Le(c)?s&&Object(r.isIntegerKey)(t)?c:c.value:Object(r.isObject)(c)?o?_e(c):be(c):c)}}class $ extends B{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Ne(i);if(Te(n)||Ne(n)||(i=je(i),n=je(n)),!Object(r.isArray)(e)&&Le(i)&&!Le(n))return!t&&(i.value=n,!0)}const s=Object(r.isArray)(e)&&Object(r.isIntegerKey)(t)?Number(t)e,G=e=>Reflect.getPrototypeOf(e);function q(e,t,n=!1,o=!1){const i=je(e=e.__v_raw),s=je(t);n||(Object(r.hasChanged)(t,s)&&P(i,0,t),P(i,0,s));const{has:c}=G(i),a=o?K:n?Ie:Ce;return c.call(i,t)?a(e.get(t)):c.call(i,s)?a(e.get(s)):void(e!==i&&e.get(t))}function J(e,t=!1){const n=this.__v_raw,o=je(n),i=je(e);return t||(Object(r.hasChanged)(e,i)&&P(o,0,e),P(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function X(e,t=!1){return e=e.__v_raw,!t&&P(je(e),0,I),Reflect.get(e,"size",e)}function Z(e,t=!1){t||Te(e)||Ne(e)||(e=je(e));const n=je(this);return G(n).has.call(n,e)||(n.add(e),R(n,"add",e,e)),this}function Q(e,t,n=!1){n||Te(t)||Ne(t)||(t=je(t));const o=je(this),{has:i,get:s}=G(o);let c=i.call(o,e);c||(e=je(e),c=i.call(o,e));const a=s.call(o,e);return o.set(e,t),c?Object(r.hasChanged)(t,a)&&R(o,"set",e,t):R(o,"add",e,t),this}function ee(e){const t=je(this),{has:n,get:r}=G(t);let o=n.call(t,e);o||(e=je(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&R(t,"delete",e,void 0),i}function te(){const e=je(this),t=0!==e.size,n=e.clear();return t&&R(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,r){const o=this,i=o.__v_raw,s=je(i),c=t?K:e?Ie:Ce;return!e&&P(s,0,I),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function re(e,t,n){return function(...o){const i=this.__v_raw,s=je(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?K:t?Ie:Ce;return!t&&P(s,0,l?k:I),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ie(){const e={get(e){return q(this,e)},get size(){return X(this)},has:J,add:Z,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return q(this,e,!1,!0)},get size(){return X(this)},has:J,add(e){return Z.call(this,e,!0)},set(e,t){return Q.call(this,e,t,!0)},delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return q(this,e,!0)},get size(){return X(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return q(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)}),[e,n,t,r]}const[se,ce,ae,le]=ie();function ue(e,t){const n=t?e?le:ae:e?ce:se;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const de={get:ue(!1,!1)},fe={get:ue(!1,!0)},pe={get:ue(!0,!1)},he={get:ue(!0,!0)};const me=new WeakMap,ve=new WeakMap,ge=new WeakMap,ye=new WeakMap;function be(e){return Ne(e)?e:Se(e,!1,H,de,me)}function Oe(e){return Se(e,!1,W,fe,ve)}function _e(e){return Se(e,!0,Y,pe,ge)}function Ee(e){return Se(e,!0,z,he,ye)}function Se(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function we(e){return Ne(e)?we(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function Te(e){return!(!e||!e.__v_isShallow)}function xe(e){return!!e&&!!e.__v_raw}function je(e){const t=e&&e.__v_raw;return t?je(t):e}function Ae(e){return Object.isExtensible(e)&&Object(r.def)(e,"__v_skip",!0),e}const Ce=e=>Object(r.isObject)(e)?be(e):e,Ie=e=>Object(r.isObject)(e)?_e(e):e;class ke{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new d(()=>e(this._value),()=>Me(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=je(this);return e._cacheable&&!e.effect.dirty||!Object(r.hasChanged)(e._value,e._value=e.effect.run())||Me(e,4),Re(e),e.effect._dirtyLevel>=2&&Me(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Pe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new ke(o,i,s||!i,n)}function Re(e){var t;y&&i&&(e=je(e),T(i,null!=(t=e.dep)?t:e.dep=A(()=>e.dep=void 0,e instanceof ke?e:void 0)))}function Me(e,t=4,n,r){const o=(e=je(e)).dep;o&&j(o,t)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return Ve(e,!1)}function De(e){return Ve(e,!0)}function Ve(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:je(e),this._value=t?e:Ce(e)}get value(){return Re(this),this._value}set value(e){const t=this.__v_isShallow||Te(e)||Ne(e);if(e=t?e:je(e),Object(r.hasChanged)(e,this._rawValue)){this._rawValue;this._rawValue=e,this._value=t?e:Ce(e),Me(this,4)}}}function $e(e){Me(e,4)}function Ue(e){return Le(e)?e.value:e}function He(e){return Object(r.isFunction)(e)?e():Ue(e)}const Ye={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function We(e){return we(e)?e:new Proxy(e,Ye)}class ze{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ke(e){return new ze(e)}function Ge(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=Ze(e,n);return t}class qe{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=C.get(e);return n&&n.get(t)}(je(this._object),this._key)}}class Je{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xe(e,t,n){return Le(e)?e:Object(r.isFunction)(e)?new Je(e):Object(r.isObject)(e)&&arguments.length>1?Ze(e,t,n):Fe(e)}function Ze(e,t,n){const r=e[t];return Le(r)?r:new qe(e,t,n)}const Qe=Pe,et={GET:"get",HAS:"has",ITERATE:"iterate"},tt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},nt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=n},function(e,t,n){n(5)},function(e,t,n){"use strict";(function(e,r){ /*! * @hippy/vue-next v3.3.1 * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) @@ -41,4 +53,4 @@ const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.len * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return Te})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return f})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return T})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return k})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return pe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return ke})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ce})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return x})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),x=e=>N(e).slice(8,-1),T=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=A(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=A(e=>e.replace(R,"-$1").toLowerCase()),L=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=A(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:M(n);(O(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>t&&t.__v_isRef?Ae(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:_(t)?Ie(t):!E(t)||h(t)||T(t)?t:String(t),Ie=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;nn.has(e.toLowerCase()):e=>n.has(e)}n.d(t,"EMPTY_ARR",(function(){return i})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return c})),n.d(t,"NOOP",(function(){return s})),n.d(t,"PatchFlagNames",(function(){return G})),n.d(t,"PatchFlags",(function(){return K})),n.d(t,"ShapeFlags",(function(){return q})),n.d(t,"SlotFlags",(function(){return J})),n.d(t,"camelize",(function(){return P})),n.d(t,"capitalize",(function(){return L})),n.d(t,"def",(function(){return B})),n.d(t,"escapeHtml",(function(){return Ne})),n.d(t,"escapeHtmlComment",(function(){return Te})),n.d(t,"extend",(function(){return u})),n.d(t,"genPropsAccessExp",(function(){return z})),n.d(t,"generateCodeFrame",(function(){return ee})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return D})),n.d(t,"hasOwn",(function(){return f})),n.d(t,"hyphenate",(function(){return M})),n.d(t,"includeBooleanAttr",(function(){return ve})),n.d(t,"invokeArrayFns",(function(){return V})),n.d(t,"isArray",(function(){return h})),n.d(t,"isBooleanAttr",(function(){return me})),n.d(t,"isBuiltInDirective",(function(){return C})),n.d(t,"isDate",(function(){return g})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyAllowed",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return le})),n.d(t,"isIntegerKey",(function(){return j})),n.d(t,"isKnownHtmlAttr",(function(){return _e})),n.d(t,"isKnownSvgAttr",(function(){return Ee})),n.d(t,"isMap",(function(){return m})),n.d(t,"isMathMLTag",(function(){return de})),n.d(t,"isModelListener",(function(){return l})),n.d(t,"isObject",(function(){return E})),n.d(t,"isOn",(function(){return a})),n.d(t,"isPlainObject",(function(){return T})),n.d(t,"isPromise",(function(){return S})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isRenderableAttrValue",(function(){return Se})),n.d(t,"isReservedProp",(function(){return k})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return ue})),n.d(t,"isSet",(function(){return v})),n.d(t,"isSpecialBooleanAttr",(function(){return he})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isVoidTag",(function(){return pe})),n.d(t,"looseEqual",(function(){return je})),n.d(t,"looseIndexOf",(function(){return ke})),n.d(t,"looseToNumber",(function(){return $})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ce})),n.d(t,"normalizeProps",(function(){return ae})),n.d(t,"normalizeStyle",(function(){return te})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return ie})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return d})),n.d(t,"slotFlagsText",(function(){return X})),n.d(t,"stringifyStyle",(function(){return se})),n.d(t,"toDisplayString",(function(){return Ce})),n.d(t,"toHandlerKey",(function(){return F})),n.d(t,"toNumber",(function(){return U})),n.d(t,"toRawType",(function(){return x})),n.d(t,"toTypeString",(function(){return N}));const o={},i=[],s=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===N(e),v=e=>"[object Set]"===N(e),g=e=>"[object Date]"===N(e),y=e=>"[object RegExp]"===N(e),b=e=>"function"==typeof e,O=e=>"string"==typeof e,_=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,S=e=>(E(e)||b(e))&&b(e.then)&&b(e.catch),w=Object.prototype.toString,N=e=>w.call(e),x=e=>N(e).slice(8,-1),T=e=>"[object Object]"===N(e),j=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=A(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=A(e=>e.replace(R,"-$1").toLowerCase()),L=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=A(e=>e?"on"+L(e):""),D=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),W=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return W.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Z=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=Z;function ee(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function se(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:M(n);(O(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ce(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_e=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ee=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const we=/["'&<>]/;function Ne(e){const t=""+e,n=we.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|je(e,t))}const Ce=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>t&&t.__v_isRef?Ae(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:_(t)?Ie(t):!E(t)||h(t)||T(t)?t:String(t),Ie=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n